Skip to content

1.3.2 Release #283

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 9 commits into from
May 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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