Skip to content
Closed
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
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3.8
2.6.0
6 changes: 3 additions & 3 deletions bin/codedeploy-agent
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

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

ruby_versions = ["2.7", "2.6", "2.5", "2.4", "2.3", "2.2", "2.1", "2.0"]
ruby_versions = ["2.7", "2.6"]
actual_ruby_version = RUBY_VERSION.split('.').map{|s|s.to_i}
left_bound = '2.0.0'.split('.').map{|s|s.to_i}
left_bound = '2.6.0'.split('.').map{|s|s.to_i}
ruby_bin = nil

if (actual_ruby_version <=> left_bound) > -1
Expand All @@ -23,5 +23,5 @@ if ruby_bin
exec("#{ruby_bin} #{File.join(File.expand_path(File.dirname(__FILE__)), "../lib/codedeploy-agent.rb")} #{ARGV.join(' ')}")
end

STDERR.puts "No supported ruby version found. Code Deploy Host Agent supports Ruby version 2.0.x and greater."
STDERR.puts "No supported ruby version found. Code Deploy Host Agent supports Ruby version 2.6.x and greater."
exit(1)