hotdog 0.27.0 → 0.27.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hotdog/version.rb +1 -1
- data/spec/optparse/down_spec.rb +3 -3
- data/spec/optparse/hosts_spec.rb +2 -2
- data/spec/optparse/pssh_spec.rb +6 -6
- data/spec/optparse/search_spec.rb +2 -2
- data/spec/optparse/ssh_spec.rb +6 -6
- data/spec/optparse/tags_spec.rb +2 -2
- data/spec/optparse/up_spec.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c50905e95a355910d2c5b79718f9eeb2a979b8b1
|
4
|
+
data.tar.gz: d1b32b0865160e303e6912125ae13a711b58fca3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b53a6a4ff7e6069d0238c1ad915af5678755e1152a761d3939a77056b149cd4ad77058137bbe111090e585d3dcd839927c820bf9844dcab7bcb23a95837a1a0
|
7
|
+
data.tar.gz: 794ec26214132db55833ba020452fb551baab5e7a5bebc4266b39c84ec8ae800ec7a72c9f3f7f645bd363b635cf3c2cf3f0aa4335588a0ba7ca0816a29a3b2c3
|
data/lib/hotdog/version.rb
CHANGED
data/spec/optparse/down_spec.rb
CHANGED
@@ -26,7 +26,7 @@ describe "option parser for down" do
|
|
26
26
|
it "can handle subcommand options after subcommand" do
|
27
27
|
allow(cmd).to receive(:run).with(["foo", "bar", "baz"], a_hash_including(
|
28
28
|
downtime: 12345,
|
29
|
-
|
29
|
+
verbosity: Hotdog::VERBOSITY_NULL,
|
30
30
|
))
|
31
31
|
app.main(["down", "--downtime", "12345", "foo", "bar", "baz"])
|
32
32
|
end
|
@@ -34,7 +34,7 @@ describe "option parser for down" do
|
|
34
34
|
it "can handle common options before subcommand" do
|
35
35
|
allow(cmd).to receive(:run).with(["foo", "bar", "baz"], a_hash_including(
|
36
36
|
downtime: 12345,
|
37
|
-
|
37
|
+
verbosity: Hotdog::VERBOSITY_INFO,
|
38
38
|
))
|
39
39
|
app.main(["--verbose", "down", "--downtime", "12345", "foo", "bar", "baz"])
|
40
40
|
end
|
@@ -42,7 +42,7 @@ describe "option parser for down" do
|
|
42
42
|
it "can handle common options after subcommand" do
|
43
43
|
allow(cmd).to receive(:run).with(["foo", "bar", "baz"], a_hash_including(
|
44
44
|
downtime: 12345,
|
45
|
-
|
45
|
+
verbosity: Hotdog::VERBOSITY_INFO,
|
46
46
|
))
|
47
47
|
app.main(["down", "--downtime", "12345", "--verbose", "foo", "bar", "baz"])
|
48
48
|
end
|
data/spec/optparse/hosts_spec.rb
CHANGED
@@ -19,14 +19,14 @@ describe "option parser for hosts" do
|
|
19
19
|
|
20
20
|
it "can handle common options before subcommand" do
|
21
21
|
allow(cmd).to receive(:run).with(["foo", "bar", "baz"], a_hash_including(
|
22
|
-
|
22
|
+
verbosity: Hotdog::VERBOSITY_INFO,
|
23
23
|
))
|
24
24
|
app.main(["--verbose", "hosts", "foo", "bar", "baz"])
|
25
25
|
end
|
26
26
|
|
27
27
|
it "can handle common options after subcommand" do
|
28
28
|
allow(cmd).to receive(:run).with(["foo", "bar", "baz"], a_hash_including(
|
29
|
-
|
29
|
+
verbosity: Hotdog::VERBOSITY_INFO,
|
30
30
|
))
|
31
31
|
app.main(["hosts", "--verbose", "foo", "bar", "baz"])
|
32
32
|
end
|
data/spec/optparse/pssh_spec.rb
CHANGED
@@ -26,7 +26,7 @@ describe "option parser for pssh" do
|
|
26
26
|
it "can handle subcommand options after subcommand" do
|
27
27
|
allow(cmd).to receive(:run).with(["foo", "bar", "baz"], a_hash_including(
|
28
28
|
max_parallelism: 42,
|
29
|
-
|
29
|
+
verbosity: Hotdog::VERBOSITY_NULL,
|
30
30
|
))
|
31
31
|
app.main(["pssh", "-P", "42", "foo", "bar", "baz"])
|
32
32
|
end
|
@@ -34,7 +34,7 @@ describe "option parser for pssh" do
|
|
34
34
|
it "can handle common options before subcommand" do
|
35
35
|
allow(cmd).to receive(:run).with(["foo", "bar", "baz"], a_hash_including(
|
36
36
|
max_parallelism: 42,
|
37
|
-
|
37
|
+
verbosity: Hotdog::VERBOSITY_INFO,
|
38
38
|
))
|
39
39
|
app.main(["--verbose", "pssh", "-P", "42", "foo", "bar", "baz"])
|
40
40
|
end
|
@@ -42,7 +42,7 @@ describe "option parser for pssh" do
|
|
42
42
|
it "can handle common options after subcommand" do
|
43
43
|
allow(cmd).to receive(:run).with(["foo", "bar", "baz"], a_hash_including(
|
44
44
|
max_parallelism: 42,
|
45
|
-
|
45
|
+
verbosity: Hotdog::VERBOSITY_INFO,
|
46
46
|
))
|
47
47
|
app.main(["pssh", "-P", "42", "--verbose", "foo", "bar", "baz"])
|
48
48
|
end
|
@@ -50,7 +50,7 @@ describe "option parser for pssh" do
|
|
50
50
|
it "can handle subcommand options with remote command, 1" do
|
51
51
|
allow(cmd).to receive(:run).with([], a_hash_including(
|
52
52
|
max_parallelism: 42,
|
53
|
-
|
53
|
+
verbosity: Hotdog::VERBOSITY_INFO,
|
54
54
|
))
|
55
55
|
app.main(["pssh", "-P", "42", "--verbose", "--", "foo", "bar", "baz"])
|
56
56
|
expect(cmd.remote_command).to eq("foo bar baz")
|
@@ -59,7 +59,7 @@ describe "option parser for pssh" do
|
|
59
59
|
it "can handle subcommand options with remote command, 2" do
|
60
60
|
allow(cmd).to receive(:run).with(["foo"], a_hash_including(
|
61
61
|
max_parallelism: 42,
|
62
|
-
|
62
|
+
verbosity: Hotdog::VERBOSITY_INFO,
|
63
63
|
))
|
64
64
|
app.main(["pssh", "-P", "42", "--verbose", "foo", "--", "bar", "baz"])
|
65
65
|
expect(cmd.remote_command).to eq("bar baz")
|
@@ -68,7 +68,7 @@ describe "option parser for pssh" do
|
|
68
68
|
it "can handle subcommand options with remote command, 3" do
|
69
69
|
allow(cmd).to receive(:run).with(["foo"], a_hash_including(
|
70
70
|
max_parallelism: 42,
|
71
|
-
|
71
|
+
verbosity: Hotdog::VERBOSITY_INFO,
|
72
72
|
))
|
73
73
|
app.main(["pssh", "-P", "42", "--verbose", "foo", "--", "bar", "--", "baz"])
|
74
74
|
expect(cmd.remote_command).to eq("bar -- baz")
|
@@ -19,14 +19,14 @@ describe "option parser for search" do
|
|
19
19
|
|
20
20
|
it "can handle common options before subcommand" do
|
21
21
|
allow(cmd).to receive(:run).with(["foo", "bar", "baz"], a_hash_including(
|
22
|
-
|
22
|
+
verbosity: Hotdog::VERBOSITY_INFO,
|
23
23
|
))
|
24
24
|
app.main(["--verbose", "search", "foo", "bar", "baz"])
|
25
25
|
end
|
26
26
|
|
27
27
|
it "can handle common options after subcommand" do
|
28
28
|
allow(cmd).to receive(:run).with(["foo", "bar", "baz"], a_hash_including(
|
29
|
-
|
29
|
+
verbosity: Hotdog::VERBOSITY_INFO,
|
30
30
|
))
|
31
31
|
app.main(["search", "--verbose", "foo", "bar", "baz"])
|
32
32
|
end
|
data/spec/optparse/ssh_spec.rb
CHANGED
@@ -26,7 +26,7 @@ describe "option parser for ssh" do
|
|
26
26
|
it "can handle subcommand options after subcommand" do
|
27
27
|
allow(cmd).to receive(:run).with(["foo", "bar", "baz"], a_hash_including(
|
28
28
|
index: 42,
|
29
|
-
|
29
|
+
verbosity: Hotdog::VERBOSITY_NULL,
|
30
30
|
))
|
31
31
|
app.main(["ssh", "--index", "42", "foo", "bar", "baz"])
|
32
32
|
end
|
@@ -34,7 +34,7 @@ describe "option parser for ssh" do
|
|
34
34
|
it "can handle common options before subcommand" do
|
35
35
|
allow(cmd).to receive(:run).with(["foo", "bar", "baz"], a_hash_including(
|
36
36
|
index: 42,
|
37
|
-
|
37
|
+
verbosity: Hotdog::VERBOSITY_INFO,
|
38
38
|
))
|
39
39
|
app.main(["--verbose", "ssh", "--index", "42", "foo", "bar", "baz"])
|
40
40
|
end
|
@@ -42,7 +42,7 @@ describe "option parser for ssh" do
|
|
42
42
|
it "can handle common options after subcommand" do
|
43
43
|
allow(cmd).to receive(:run).with(["foo", "bar", "baz"], a_hash_including(
|
44
44
|
index: 42,
|
45
|
-
|
45
|
+
verbosity: Hotdog::VERBOSITY_INFO,
|
46
46
|
))
|
47
47
|
app.main(["ssh", "--index", "42", "--verbose", "foo", "bar", "baz"])
|
48
48
|
end
|
@@ -50,7 +50,7 @@ describe "option parser for ssh" do
|
|
50
50
|
it "can handle subcommand options with remote command, 1" do
|
51
51
|
allow(cmd).to receive(:run).with([], a_hash_including(
|
52
52
|
index: 42,
|
53
|
-
|
53
|
+
verbosity: Hotdog::VERBOSITY_INFO,
|
54
54
|
))
|
55
55
|
app.main(["ssh", "--index", "42", "--verbose", "--", "foo", "bar", "baz"])
|
56
56
|
expect(cmd.remote_command).to eq("foo bar baz")
|
@@ -59,7 +59,7 @@ describe "option parser for ssh" do
|
|
59
59
|
it "can handle subcommand options with remote command, 2" do
|
60
60
|
allow(cmd).to receive(:run).with(["foo"], a_hash_including(
|
61
61
|
index: 42,
|
62
|
-
|
62
|
+
verbosity: Hotdog::VERBOSITY_INFO,
|
63
63
|
))
|
64
64
|
app.main(["ssh", "--index", "42", "--verbose", "foo", "--", "bar", "baz"])
|
65
65
|
expect(cmd.remote_command).to eq("bar baz")
|
@@ -68,7 +68,7 @@ describe "option parser for ssh" do
|
|
68
68
|
it "can handle subcommand options with remote command, 3" do
|
69
69
|
allow(cmd).to receive(:run).with(["foo"], a_hash_including(
|
70
70
|
index: 42,
|
71
|
-
|
71
|
+
verbosity: Hotdog::VERBOSITY_INFO,
|
72
72
|
))
|
73
73
|
app.main(["ssh", "--index", "42", "--verbose", "foo", "--", "bar", "--", "baz"])
|
74
74
|
expect(cmd.remote_command).to eq("bar -- baz")
|
data/spec/optparse/tags_spec.rb
CHANGED
@@ -19,14 +19,14 @@ describe "option parser for tags" do
|
|
19
19
|
|
20
20
|
it "can handle common options before subcommand" do
|
21
21
|
allow(cmd).to receive(:run).with(["foo", "bar", "baz"], a_hash_including(
|
22
|
-
|
22
|
+
verbosity: Hotdog::VERBOSITY_INFO,
|
23
23
|
))
|
24
24
|
app.main(["--verbose", "tags", "foo", "bar", "baz"])
|
25
25
|
end
|
26
26
|
|
27
27
|
it "can handle common options after subcommand" do
|
28
28
|
allow(cmd).to receive(:run).with(["foo", "bar", "baz"], a_hash_including(
|
29
|
-
|
29
|
+
verbosity: Hotdog::VERBOSITY_INFO,
|
30
30
|
))
|
31
31
|
app.main(["tags", "--verbose", "foo", "bar", "baz"])
|
32
32
|
end
|
data/spec/optparse/up_spec.rb
CHANGED
@@ -19,14 +19,14 @@ describe "option parser for up" do
|
|
19
19
|
|
20
20
|
it "can handle common options before subcommand" do
|
21
21
|
allow(cmd).to receive(:run).with(["foo", "bar", "baz"], a_hash_including(
|
22
|
-
|
22
|
+
verbosity: Hotdog::VERBOSITY_INFO,
|
23
23
|
))
|
24
24
|
app.main(["--verbose", "up", "foo", "bar", "baz"])
|
25
25
|
end
|
26
26
|
|
27
27
|
it "can handle common options after subcommand" do
|
28
28
|
allow(cmd).to receive(:run).with(["foo", "bar", "baz"], a_hash_including(
|
29
|
-
|
29
|
+
verbosity: Hotdog::VERBOSITY_INFO,
|
30
30
|
))
|
31
31
|
app.main(["up", "--verbose", "foo", "bar", "baz"])
|
32
32
|
end
|