Skip to content

Instantly share code, notes, and snippets.

@benhoskings
Created March 26, 2013 06:15
Show Gist options
  • Save benhoskings/5243494 to your computer and use it in GitHub Desktop.
Save benhoskings/5243494 to your computer and use it in GitHub Desktop.
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