charmkit 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/charmkit.gemspec +2 -0
- data/lib/charmkit/helpers/runner.rb +3 -10
- data/lib/charmkit/version.rb +1 -1
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99c52f3b6ceb4f3486f2e42cb4c1365d0dcf359f
|
4
|
+
data.tar.gz: 48cafde12a86682be177075b98de869b949c9962
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55d152384700cea0c8ac3c21c4b0c69cc7276c2414d317c7408ea54e6eba041b1b67215c4f59cafa9accf3846043bcef8077d001093a100dad84097cb0d5fefe
|
7
|
+
data.tar.gz: ce23e1e417274974496113f6fcb0200028f3dbff3b51c68c32186bbccd06239070426b0d2424efb2ce965f1f8c930eb41bed420ed0d16bd33aa214961de1c999
|
data/charmkit.gemspec
CHANGED
@@ -21,6 +21,8 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
|
24
|
+
spec.add_dependency "tty-command"
|
25
|
+
|
24
26
|
spec.add_development_dependency "bundler", "~> 1.13"
|
25
27
|
spec.add_development_dependency "rake", "~> 10.0"
|
26
28
|
spec.add_development_dependency "rspec", "~> 3.0"
|
@@ -1,17 +1,10 @@
|
|
1
|
-
require '
|
1
|
+
require 'tty-command'
|
2
2
|
|
3
3
|
module Charmkit
|
4
4
|
module Helpers
|
5
5
|
def run(*cmd)
|
6
|
-
|
7
|
-
|
8
|
-
raise StandardError, "Failed to run command: #{stderr_s}"
|
9
|
-
end
|
10
|
-
return {
|
11
|
-
:out => stdout_s,
|
12
|
-
:err => stderr_s,
|
13
|
-
:status => status
|
14
|
-
}
|
6
|
+
runner = TTY::Command.new
|
7
|
+
return runner.run(*cmd)
|
15
8
|
end
|
16
9
|
end
|
17
10
|
end
|
data/lib/charmkit/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: charmkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Stokes
|
@@ -10,6 +10,20 @@ bindir: exe
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2016-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: tty-command
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: bundler
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|