simple-cli 0.2.6 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54bff42c6634042b848b581fa65da5564b29ee18
4
- data.tar.gz: 99cad6aea2afc971fd275c87c9220c8a41f4b1d9
3
+ metadata.gz: c5b3fd1da7ac1980589b3dcf3854962d4f7bb06f
4
+ data.tar.gz: 64bb1a9fa185923f5ff70e8c2fef6925e19964a6
5
5
  SHA512:
6
- metadata.gz: 6a1527878d377b6a92893f06f45e47086ae60773e07cffc6d6bc417777f46fb03a3d79c6f97b90b5204c1d833750b9f928ce2d7ceb34eff61ae765aaf70c83d3
7
- data.tar.gz: 7102a866b12baa2d473badfe5bb9472328f533cdf602afb7f51a6f770f91b816cbcfc3074ae2dda393d6def3d8b3a5abbfc76284af09507642d2cdb55ed0a6f7
6
+ metadata.gz: dc26dddd407b128b9eef968efaad716a15e80552bf9458628b86624c7a6b08230adda6efc6d54ec235797f2ece99e966517f32bb7fc7ef0a65644ab95e0968d6
7
+ data.tar.gz: 18ee454086edc5cc0d32afe28a2147b6e0c514ffa39e0820961b8a7142f1dee3f6b4c444aca3e4197c1da0c66582a042e94fd1aa4dfccd45b33e8156075b1a70
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simple-cli (0.2.6)
4
+ simple-cli (0.2.7)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  module Simple
2
2
  module CLI
3
- VERSION = "0.2.6"
3
+ VERSION = "0.2.7"
4
4
  end
5
5
  end
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.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - radiospiel