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

time for a package? #9

Open
deanmalmgren opened this issue Apr 29, 2015 · 2 comments
Open

time for a package? #9

deanmalmgren opened this issue Apr 29, 2015 · 2 comments

Comments

@deanmalmgren
Copy link
Contributor

I haven't looked into it, but if this doesn't exist it would be awesome to create it. My current practice of using FabTools_StartKit is to copy/paste the code from project to project. Some of it has been extremely repetitive. It would be nice if we bundled a lot of the core stuff --- installing python packages, ruby packages, and debian packages into a separate python app to make it really easy to reuse this code without copying it everywhere. That would at least give us a chance of reusing the good stuff.

Then a typical project could look like this:

# provision.py
import fabric
import fabtools
import jumpstart   # <-- not wild about this name, but I'm going with it for now

@task
@jumpstart.needs_environment
def setup_apache():
    print "do some custom stuff in here?"

@task(default=True)
def default():
    jumpstart.install_packages()
    jumpstart.setup_shell()
    jumpstart.configure_timezone()

Look 'ma, no copy/paste! This allows us to store all the package files in the same requirements/ directory. I'm sure there are other things that we can add to this over time, but it seems like a decent thing to do. What do you think?

@deanmalmgren
Copy link
Contributor Author

Here are a few other things I could imagine adding over time:

  • jumpstart.setup_django()
  • jumpstart.setup_flask()
  • jumpstart.compile_scss()
  • jumpstart.setup_apache()

I'm sure there are lots of others, but I thought I'd mention it here as long as I'm thinking about it.

@stringertheory
Copy link

What's the difference between jumpstart and fabtools?

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