Skip to content

Commit

Permalink
EB environment names are read from environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
tawan committed Feb 6, 2016
1 parent af238a7 commit ffeaa28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
module Helpers
WEB_ENV_HOST = ENV['WEB_ENV_HOST']
WEB_ENV_PORT = ENV['WEB_ENV_PORT']
WEB_ENV_NAME = ENV['WEB_ENV_NAME']
WORKER_ENV_NAME = ENV['WORKER_ENV_NAME']

class TestJob < ActiveJob::Base
queue_as :high_priority
Expand All @@ -20,7 +22,7 @@ def deploy
build_gem do
unpack_gem_into_vendor_dir
Dir.chdir("spec/integration/rails-app") do
[ 'web-env', 'worker-env' ].each do |env|
[ WEB_ENV_NAME, WORKER_ENV_NAME ].each do |env|
unless system("eb deploy #{env}")
raise "Could not deploy application to environment #{env}"
end
Expand Down

0 comments on commit ffeaa28

Please sign in to comment.