simple-cli 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/simple/cli/helpers.rb +0 -12
- data/lib/simple/cli/version.rb +1 -1
- 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: c5b3fd1da7ac1980589b3dcf3854962d4f7bb06f
|
4
|
+
data.tar.gz: 64bb1a9fa185923f5ff70e8c2fef6925e19964a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc26dddd407b128b9eef968efaad716a15e80552bf9458628b86624c7a6b08230adda6efc6d54ec235797f2ece99e966517f32bb7fc7ef0a65644ab95e0968d6
|
7
|
+
data.tar.gz: 18ee454086edc5cc0d32afe28a2147b6e0c514ffa39e0820961b8a7142f1dee3f6b4c444aca3e4197c1da0c66582a042e94fd1aa4dfccd45b33e8156075b1a70
|
data/Gemfile.lock
CHANGED
data/lib/simple/cli/helpers.rb
CHANGED
@@ -29,17 +29,6 @@ module Simple::CLI::Helpers
|
|
29
29
|
sys! "#{ssh_command(target, user: user)} #{command}"
|
30
30
|
end
|
31
31
|
|
32
|
-
def sh(cmd, *args)
|
33
|
-
command = Command.new(cmd, *args)
|
34
|
-
result = command.sh
|
35
|
-
first_line, more = result.split("\n", 2)
|
36
|
-
if more == ""
|
37
|
-
first_line
|
38
|
-
else
|
39
|
-
result
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
32
|
def sh!(cmd, *args)
|
44
33
|
command = Command.new(cmd, *args)
|
45
34
|
result = command.sh
|
@@ -74,7 +63,6 @@ module Simple::CLI::Helpers
|
|
74
63
|
def sh
|
75
64
|
::Simple::CLI.logger.info "> #{self}"
|
76
65
|
stdout_str, @process_status = Open3.capture2(*@args, binmode: true)
|
77
|
-
$? = @process_status
|
78
66
|
stdout_str
|
79
67
|
end
|
80
68
|
|
data/lib/simple/cli/version.rb
CHANGED