case
This commit is contained in:
parent
8316ab8e51
commit
07ecb2509b
1 changed files with 7 additions and 4 deletions
|
@ -1,8 +1,11 @@
|
||||||
task :deploy do
|
task :deploy do
|
||||||
if ENV['STAGE_NAME'] == 'dev'
|
domains = case ENV['STAGE_NAME']
|
||||||
domains = ['web1.dev', 'web2.dev']
|
when 'dev'
|
||||||
elsif ENV['STAGE_NAME'] == 'master'
|
['web1.dev', 'web2.dev']
|
||||||
domains = ['web1', 'web2']
|
when 'master'
|
||||||
|
['web1', 'web2']
|
||||||
|
else
|
||||||
|
raise "STAGE_NAME #{STAGE_NAME} is unknown. It must be either dev or master"
|
||||||
end
|
end
|
||||||
|
|
||||||
branch = ENV['STAGE_NAME']
|
branch = ENV['STAGE_NAME']
|
||||||
|
|
Loading…
Reference in a new issue