lib/dpl/provider/code_deploy.rb in dpl-1.7.12.travis.734.4 vs lib/dpl/provider/code_deploy.rb in dpl-1.7.12.travis.742.4
- old
+ new
@@ -4,13 +4,10 @@
class Provider
class CodeDeploy < Provider
requires 'aws-sdk', pre: true
def code_deploy
- @code_deploy ||= begin
- Aws.add_service('CodeDeploy', api: File.expand_path("../CodeDeploy.api.json", __FILE__)) unless defined? Aws::CodeDeploy
- Aws::CodeDeploy::Client.new(code_deploy_options)
- end
+ @code_deploy ||= Aws::CodeDeploy::Client.new(code_deploy_options)
end
def code_deploy_options
code_deploy_options = {
region: options[:region] || 'us-east-1',