Move all files on the host under a common directory
This will make running kamal remove simpler, we can just clean up that directory.
This commit is contained in:
@@ -97,7 +97,7 @@ class CliMainTest < CliTestCase
|
||||
Dir.stubs(:chdir)
|
||||
|
||||
SSHKit::Backend::Abstract.any_instance.stubs(:execute)
|
||||
.with { |*args| args == [ :mkdir, "-p", ".kamal" ] }
|
||||
.with { |*args| args == [ :mkdir, "-p", ".kamal/apps/app" ] }
|
||||
|
||||
SSHKit::Backend::Abstract.any_instance.stubs(:execute)
|
||||
.with { |*args| args == [ :mkdir, "-p", ".kamal/locks" ] }
|
||||
@@ -134,7 +134,7 @@ class CliMainTest < CliTestCase
|
||||
Dir.stubs(:chdir)
|
||||
|
||||
SSHKit::Backend::Abstract.any_instance.stubs(:execute)
|
||||
.with { |*args| args == [ :mkdir, "-p", ".kamal" ] }
|
||||
.with { |*args| args == [ :mkdir, "-p", ".kamal/apps/app" ] }
|
||||
|
||||
SSHKit::Backend::Abstract.any_instance.stubs(:execute)
|
||||
.with { |*args| args == [ :mkdir, "-p", ".kamal/locks" ] }
|
||||
@@ -305,7 +305,7 @@ class CliMainTest < CliTestCase
|
||||
|
||||
test "audit" do
|
||||
run_command("audit").tap do |output|
|
||||
assert_match %r{tail -n 50 \.kamal/app-audit.log on 1.1.1.1}, output
|
||||
assert_match %r{tail -n 50 \.kamal/apps/app/audit.log on 1.1.1.1}, output
|
||||
assert_match /App Host: 1.1.1.1/, output
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user