Skip to content

Instantly share code, notes, and snippets.

@caseybecking
Created August 7, 2011 18:41
Show Gist options
  • Save caseybecking/1130632 to your computer and use it in GitHub Desktop.
Save caseybecking/1130632 to your computer and use it in GitHub Desktop.
deployinator multiple deployments
module Deployinator
module Stacks
module Boilerplate
def boilerplate_production_version
# %x{curl http://my-app.com/version.txt}
"cf44aab-20110729-230910-UTC"
end
def boilerplate_head_build
# the build version you're about to push
# %x{git ls-remote #{your_git_repo_url} HEAD | cut -c1-7}.chomp
"11666e3"
end
def boilerplate_production(options={})
log_and_stream "Fill in the boilerplate_production method in stacks/boilerplate.rb!<br>"
# log the deploy
log_and_shout :old_build => environments[0][:current_build].call, :build => environments[0][:next_build].call
end
def boilerplate_development_version
# %x{curl http://my-app.com/version.txt}
"cf44aab-20110729-230910-UTC"
end
def boilerplate_head_build
# the build version you're about to push
# %x{git ls-remote #{your_git_repo_url} HEAD | cut -c1-7}.chomp
"11666e3"
end
def boilerplate_development(options={})
log_and_stream "Fill in the boilerplate_development method in stacks/boilerplate.rb!<br>"
# log the deploy
log_and_shout :old_build => environments[0][:current_build].call, :build => environments[0][:next_build].call
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment