Skip to content

Commit dc22129

Browse files
author
Zara
committed
Added support in the agent for Ubuntu LTS release("bionic") ships with Ruby 2.5.x.
cr https://code.amazon.com/reviews/CR-3383787
1 parent 268b1ff commit dc22129

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bin/codedeploy-agent

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
$:.unshift File.join(File.dirname(File.expand_path('..', __FILE__)), 'lib')
44

5-
ruby_versions = ["2.4", "2.3", "2.2", "2.1", "2.0"]
5+
ruby_versions = ["2.5", "2.4", "2.3", "2.2", "2.1", "2.0"]
66
actual_ruby_version = RUBY_VERSION.split('.').map{|s|s.to_i}
77
left_bound = '2.0.0'.split('.').map{|s|s.to_i}
88
ruby_bin = nil

bin/install

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ EOF
8686
end
8787

8888
def supported_ruby_versions
89-
['2.4', '2.3', '2.2', '2.1', '2.0']
89+
['2.5', '2.4', '2.3', '2.2', '2.1', '2.0']
9090
end
9191

9292
# check ruby version, only version 2.x works
@@ -163,7 +163,7 @@ EOF
163163
# change interpreter when symlink /usr/bin/ruby2.x exists, but running with non-supported ruby version
164164
actual_ruby_version = RUBY_VERSION.split('.').map{|s|s.to_i}
165165
left_bound = '2.0.0'.split('.').map{|s|s.to_i}
166-
right_bound = '2.4.1'.split('.').map{|s|s.to_i}
166+
right_bound = '2.5.1'.split('.').map{|s|s.to_i}
167167
if (actual_ruby_version <=> left_bound) < 0
168168
if(!@reexeced)
169169
@log.info("The current Ruby version is not 2.x! Restarting the installer with #{ruby_interpreter_path}")

0 commit comments

Comments
 (0)