Created
August 7, 2011 18:41
-
-
Save caseybecking/1130632 to your computer and use it in GitHub Desktop.
deployinator multiple deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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