Skip to content

Commit 9c6252d

Browse files
committed
Rubocop fixes
1 parent 7a05140 commit 9c6252d

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/kamal/commands/docker.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def add_to_docker_group
3232
end
3333

3434
def refresh_session
35-
[ 'kill -HUP $PPID' ]
35+
[ "kill -HUP $PPID" ]
3636
end
3737

3838
def create_network

test/cli/server_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class CliServerTest < CliTestCase
7474
SSHKit::Backend::Abstract.any_instance.expects(:execute).with('[ "${EUID:-$(id -u)}" -eq 0 ]', raise_on_non_zero_exit: false).returns(false).at_least_once
7575
SSHKit::Backend::Abstract.any_instance.expects(:execute).with('id -nG "${USER:-$(id -un)}" | grep -qw docker', raise_on_non_zero_exit: false).returns(false).at_least_once
7676
SSHKit::Backend::Abstract.any_instance.expects(:execute).with('sudo -n usermod -aG docker "${USER:-$(id -un)}"').at_least_once
77-
SSHKit::Backend::Abstract.any_instance.expects(:execute).with('kill -HUP $PPID').at_least_once.raises(IOError, "closed stream")
77+
SSHKit::Backend::Abstract.any_instance.expects(:execute).with("kill -HUP $PPID").at_least_once.raises(IOError, "closed stream")
7878
SSHKit::Backend::Abstract.any_instance.expects(:execute).with(:mkdir, "-p", ".kamal").returns("").at_least_once
7979
Kamal::Commands::Hook.any_instance.stubs(:hook_exists?).returns(true)
8080
SSHKit::Backend::Abstract.any_instance.expects(:execute).with(".kamal/hooks/pre-connect", anything).at_least_once

test/commands/docker_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ class CommandsDockerTest < ActiveSupport::TestCase
3737
end
3838

3939
test "refresh_session" do
40-
assert_equal 'kill -HUP $PPID', @docker.refresh_session.join(" ")
40+
assert_equal "kill -HUP $PPID", @docker.refresh_session.join(" ")
4141
end
4242
end

0 commit comments

Comments
 (0)