Created
March 26, 2013 06:15
-
-
Save benhoskings/5243494 to your computer and use it in GitHub Desktop.
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
dep 'provision the bastard', :host, :host_name, :ref, :env, :domain do | |
def authorized_keys | |
keys = 'config/authorized_keys'.p.read | |
keys += "\n" + 'config/authorized_keys.non_production'.p.read if env != "production" | |
keys | |
end | |
domain.default!('staging.tc-dev.net') unless env == 'production' | |
requires 'conversation:host provisioned'.with( | |
host: host, | |
host_name: host_name, | |
ref: ref, | |
env: env, | |
app_name: 'tc', | |
domain: domain, | |
app_user: 'theconversation.com', | |
expected_content: 'Academic rigour, journalistic flair', | |
keys: authorized_keys | |
) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment