lib/dpl/provider/code_deploy.rb in dpl-1.7.4.travis.600.1 vs lib/dpl/provider/code_deploy.rb in dpl-1.7.4.travis.619.1

- old
+ new

@@ -47,12 +47,12 @@ def github_revision { revision_type: 'GitHub', git_hub_location: { - commit_id: options[:commit_id] || ENV['TRAVIS_COMMIT'] || `git rev-parse HEAD`.strip, - repository: options[:repository] || ENV['TRAVIS_REPO_SLUG'] || option(:repository) + commit_id: options[:commit_id] || context.env['TRAVIS_COMMIT'] || `git rev-parse HEAD`.strip, + repository: options[:repository] || context.env['TRAVIS_REPO_SLUG'] || option(:repository) } } end def push_app @@ -78,10 +78,10 @@ def s3_key options[:key] || option(:s3_key) end def default_description - "Deploy build #{ENV['TRAVIS_BUILD_NUMBER']} via Travis CI" + "Deploy build #{context.env['TRAVIS_BUILD_NUMBER']} via Travis CI" end def check_auth log "Logging in with Access Key: #{option(:access_key_id)[-4..-1].rjust(20, '*')}" end