Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Fabric for some of these commands #1

Open
mahmoudimus opened this issue Aug 15, 2014 · 2 comments
Open

Use Fabric for some of these commands #1

mahmoudimus opened this issue Aug 15, 2014 · 2 comments

Comments

@mahmoudimus
Copy link
Contributor

https://github.com/balanced/bob/blob/master/bob/builders/__init__.py#L17-L32

@mjallday
Copy link
Contributor

ref https://hynek.me/articles/python-app-deployment-with-native-packages/ which uses fabric entirely

@mjallday
Copy link
Contributor

think we can do

from fabric.api import local


class FabricBuilderMixin(object):

    cmd_executor = local

    def run_command(cmd):
        self.cmd_executor(cmd)

which makes it easy to swap out the cmd_executor with the current implementation (popen) and also makes it easy to use fabric's remote executor if we ever decided to move to using a remote build slave.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants