simple-cli 0.2.4 → 0.2.5
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 +11 -0
- data/lib/simple/cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcb48c1ae3ae3ccebd82b9325af58f639910f22b
|
4
|
+
data.tar.gz: 07479195b9435ede0973188e6f44a773a5a3547e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3483729223bc6fff70f10ff13b94c0fbdadfa67710315c99bb0195a1dd2b36e35630240fe2329eed341068deab1c3f5929218276cafc06ec104f5b0fab18e993
|
7
|
+
data.tar.gz: e73e915b867625e90272ebac5101d18a8625f348c2d8b0fdad52a9fb31777f4d5c6cc60ebf907cfd3c48cbaa51fc42e2540ff1350cae7701c2f60ca081b9eb4d
|
data/Gemfile.lock
CHANGED
data/lib/simple/cli/helpers.rb
CHANGED
@@ -29,6 +29,17 @@ 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
|
+
|
32
43
|
def sh!(cmd, *args)
|
33
44
|
command = Command.new(cmd, *args)
|
34
45
|
result = command.sh
|
data/lib/simple/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- radiospiel
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-03-
|
12
|
+
date: 2018-03-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|