9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# File 'lib/copenhagen.rb', line 9
def dip
environment = ARGV[0]
yaml = YAML.load(File.open("Copenhagen.yml"))
if(yaml[environment])
puts "Dipping to #{environment}"
config = yaml[environment]
if config['target'] == 'heroku'
heroku config
elsif config['target'] == 'remote-pull'
remotepull config
elsif config['target'] == 'remote-pull-with-password'
remotepullwithpassword config
elsif config['target'] == 'remote-script'
remotescript config
end
end
end
|