Skip to content

Commit

Permalink
Merge pull request #283 from philstrong/gh-1.3.2
Browse files Browse the repository at this point in the history
1.3.2 Release
  • Loading branch information
vrr-21 authored May 24, 2021
2 parents c9c073c + e8b1af6 commit a724d58
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 8 deletions.
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.3.8
11 changes: 11 additions & 0 deletions bin/install
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ class Proxy
@targets = targets
end

def path
@targets.map do |target|
if target.respond_to?(:path)
target.__send__(:path)
else
# default to to_s since it's just used as a label for log statements.
target.__send__(:to_s)
end
end
end

protected

def method_missing(name, *args, &block)
Expand Down
11 changes: 11 additions & 0 deletions bin/update
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ class Proxy
@targets = targets
end

def path
@targets.map do |target|
if target.respond_to?(:path)
target.__send__(:path)
else
# default to to_s since it's just used as a label for log statements.
target.__send__(:to_s)
end
end
end

protected

def method_missing(name, *args, &block)
Expand Down
2 changes: 1 addition & 1 deletion codedeploy_agent.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |spec|
spec.name = 'aws_codedeploy_agent'
spec.version = '1.3.1'
spec.version = '1.3.2'
spec.summary = 'Packages AWS CodeDeploy agent libraries'
spec.description = 'AWS CodeDeploy agent is responsible for doing the actual work of deploying software on an individual EC2 instance'
spec.author = 'Amazon Web Services'
Expand Down
5 changes: 1 addition & 4 deletions lib/instance_agent/platform/linux_util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,8 @@ def self.extract_tar(bundle_file, dst)
def self.extract_zip(bundle_file, dst)
log(:debug, "extract_zip - dst : #{dst}")
FileUtils.mkdir_p(dst)
working_dir = FileUtils.pwd()
absolute_bundle_path = File.expand_path(bundle_file)
FileUtils.cd(dst)
execute_zip_command("unzip -qo #{absolute_bundle_path}")
FileUtils.cd(working_dir)
execute_zip_command("unzip -qo #{absolute_bundle_path} -d #{dst}")
end

def self.extract_tgz(bundle_file, dst)
Expand Down
2 changes: 1 addition & 1 deletion lib/instance_agent/plugins/codedeploy/command_executor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -528,4 +528,4 @@ def log(severity, message)
end
end
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,7 @@ def generate_signed_message_for(map)
end

context "when creating S3 options" do

should "use right signature version" do
should "use right signature version" do
assert_equal 'v4', @command_executor.s3_options[:signature_version]
end

Expand Down

0 comments on commit a724d58

Please sign in to comment.