diff --git a/lib/kamal/cli.rb b/lib/kamal/cli.rb index c9a2a886b..c1501ddb3 100644 --- a/lib/kamal/cli.rb +++ b/lib/kamal/cli.rb @@ -4,4 +4,4 @@ class HookError < StandardError; end end # SSHKit uses instance eval, so we need a global const for ergonomics -Kamal = Kamal::Commander.new +KAMAL = Kamal::Commander.new diff --git a/test/cli/cli_test_case.rb b/test/cli/cli_test_case.rb index c7d946e96..e28f96327 100644 --- a/test/cli/cli_test_case.rb +++ b/test/cli/cli_test_case.rb @@ -5,8 +5,8 @@ class CliTestCase < ActiveSupport::TestCase ENV["VERSION"] = "999" ENV["RAILS_MASTER_KEY"] = "123" ENV["MYSQL_ROOT_PASSWORD"] = "secret123" - Object.send(:remove_const, :Kamal) - Object.const_set(:Kamal, Kamal::Commander.new) + Object.send(:remove_const, :KAMAL) + Object.const_set(:KAMAL, Kamal::Commander.new) end teardown do