Skip to content

Commit a724d58

Browse files
authored
Merge pull request #283 from philstrong/gh-1.3.2
1.3.2 Release
2 parents c9c073c + e8b1af6 commit a724d58

File tree

7 files changed

+27
-8
lines changed

7 files changed

+27
-8
lines changed

Diff for: .ruby-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.3.8

Diff for: bin/install

+11
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ class Proxy
1414
@targets = targets
1515
end
1616

17+
def path
18+
@targets.map do |target|
19+
if target.respond_to?(:path)
20+
target.__send__(:path)
21+
else
22+
# default to to_s since it's just used as a label for log statements.
23+
target.__send__(:to_s)
24+
end
25+
end
26+
end
27+
1728
protected
1829

1930
def method_missing(name, *args, &block)

Diff for: bin/update

+11
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ class Proxy
1414
@targets = targets
1515
end
1616

17+
def path
18+
@targets.map do |target|
19+
if target.respond_to?(:path)
20+
target.__send__(:path)
21+
else
22+
# default to to_s since it's just used as a label for log statements.
23+
target.__send__(:to_s)
24+
end
25+
end
26+
end
27+
1728
protected
1829

1930
def method_missing(name, *args, &block)

Diff for: codedeploy_agent.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |spec|
22
spec.name = 'aws_codedeploy_agent'
3-
spec.version = '1.3.1'
3+
spec.version = '1.3.2'
44
spec.summary = 'Packages AWS CodeDeploy agent libraries'
55
spec.description = 'AWS CodeDeploy agent is responsible for doing the actual work of deploying software on an individual EC2 instance'
66
spec.author = 'Amazon Web Services'

Diff for: lib/instance_agent/platform/linux_util.rb

+1-4
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,8 @@ def self.extract_tar(bundle_file, dst)
5151
def self.extract_zip(bundle_file, dst)
5252
log(:debug, "extract_zip - dst : #{dst}")
5353
FileUtils.mkdir_p(dst)
54-
working_dir = FileUtils.pwd()
5554
absolute_bundle_path = File.expand_path(bundle_file)
56-
FileUtils.cd(dst)
57-
execute_zip_command("unzip -qo #{absolute_bundle_path}")
58-
FileUtils.cd(working_dir)
55+
execute_zip_command("unzip -qo #{absolute_bundle_path} -d #{dst}")
5956
end
6057

6158
def self.extract_tgz(bundle_file, dst)

Diff for: lib/instance_agent/plugins/codedeploy/command_executor.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -528,4 +528,4 @@ def log(severity, message)
528528
end
529529
end
530530
end
531-
end
531+
end

Diff for: test/instance_agent/plugins/codedeploy/command_executor_test.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,7 @@ def generate_signed_message_for(map)
405405
end
406406

407407
context "when creating S3 options" do
408-
409-
should "use right signature version" do
408+
should "use right signature version" do
410409
assert_equal 'v4', @command_executor.s3_options[:signature_version]
411410
end
412411

0 commit comments

Comments
 (0)