command-runner 0.7.1 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -7
- data/lib/command/runner/message.rb +8 -0
- data/lib/command/runner/version.rb +1 -1
- metadata +78 -61
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
5
|
-
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9c2621f1bb8bf6c57ea83aaaefaa8513f0498493
|
4
|
+
data.tar.gz: ece6a307c578b584d6885880a2af0c74d63262e7
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d2b68143080c04956b1288fbf871c83a064787ff59cb7fd8f4b311a49823ce6ea4ccec310de931f9367d2e8d066379abe97bb056da3a73d925465791b5d35f02
|
7
|
+
data.tar.gz: 0e20e6ec4c1a462e152a2d5d35aaab170bbb1164c3bb8cf097a00dae8d2b1db0d425e6f832346e764298dcbc50823c68a20d8033da130939302530ff48a2c777
|
@@ -67,6 +67,14 @@ module Command
|
|
67
67
|
exit_code != 0
|
68
68
|
end
|
69
69
|
|
70
|
+
# Returns if the command was successful or not. Success is
|
71
|
+
# defined as an exit code of 0.
|
72
|
+
#
|
73
|
+
# @return [Boolean]
|
74
|
+
def successful?
|
75
|
+
exit_code == 0
|
76
|
+
end
|
77
|
+
|
70
78
|
# Whether or not the command existed; or, if the exit code
|
71
79
|
# is 127.
|
72
80
|
#
|
metadata
CHANGED
@@ -1,99 +1,116 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: command-runner
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
6
|
+
authors:
|
7
7
|
- Jeremy Rodi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2014-01-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
15
14
|
name: promise
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
version: "0.3"
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.3'
|
22
20
|
type: :runtime
|
23
|
-
version_requirements: *id001
|
24
|
-
- !ruby/object:Gem::Dependency
|
25
|
-
name: rspec
|
26
21
|
prerelease: false
|
27
|
-
|
28
|
-
requirements:
|
29
|
-
-
|
30
|
-
-
|
31
|
-
|
32
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2'
|
33
34
|
type: :development
|
34
|
-
version_requirements: *id002
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: yard
|
37
35
|
prerelease: false
|
38
|
-
|
39
|
-
requirements:
|
40
|
-
-
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: yard
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.8'
|
41
48
|
type: :development
|
42
|
-
version_requirements: *id004
|
43
|
-
- !ruby/object:Gem::Dependency
|
44
|
-
name: fuubar
|
45
49
|
prerelease: false
|
46
|
-
|
47
|
-
requirements:
|
48
|
-
-
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.8'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: fuubar
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1'
|
49
62
|
type: :development
|
50
|
-
|
51
|
-
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1'
|
69
|
+
description: |2
|
70
|
+
Runs a command or two in the shell with arguments that can be
|
71
|
+
interpolated with the interpolation syntax.
|
52
72
|
email: redjazz96@gmail.com
|
53
73
|
executables: []
|
54
|
-
|
55
74
|
extensions: []
|
56
|
-
|
57
75
|
extra_rdoc_files: []
|
58
|
-
|
59
|
-
files:
|
76
|
+
files:
|
60
77
|
- README.md
|
61
78
|
- lib/command/runner.rb
|
62
|
-
- lib/command/runner/
|
63
|
-
- lib/command/runner/backends/posix_spawn.rb
|
64
|
-
- lib/command/runner/backends/ssh.rb
|
79
|
+
- lib/command/runner/backends.rb
|
65
80
|
- lib/command/runner/backends/backticks.rb
|
66
81
|
- lib/command/runner/backends/fake.rb
|
82
|
+
- lib/command/runner/backends/posix_spawn.rb
|
67
83
|
- lib/command/runner/backends/spawn.rb
|
84
|
+
- lib/command/runner/backends/ssh.rb
|
68
85
|
- lib/command/runner/exceptions.rb
|
69
|
-
- lib/command/runner/
|
86
|
+
- lib/command/runner/message.rb
|
70
87
|
- lib/command/runner/version.rb
|
71
|
-
- spec/spawn_spec.rb
|
72
|
-
- spec/messenger_spec.rb
|
73
88
|
- spec/backticks_spec.rb
|
89
|
+
- spec/messenger_spec.rb
|
90
|
+
- spec/spawn_spec.rb
|
74
91
|
homepage: http://github.com/redjazz96/command-runner
|
75
|
-
licenses:
|
76
|
-
|
92
|
+
licenses:
|
93
|
+
- MIT
|
77
94
|
metadata: {}
|
78
|
-
|
79
95
|
post_install_message:
|
80
96
|
rdoc_options: []
|
81
|
-
|
82
|
-
require_paths:
|
97
|
+
require_paths:
|
83
98
|
- lib
|
84
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
85
|
-
requirements:
|
86
|
-
-
|
87
|
-
|
88
|
-
|
89
|
-
|
99
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '0'
|
90
109
|
requirements: []
|
91
|
-
|
92
110
|
rubyforge_project:
|
93
|
-
rubygems_version: 2.0
|
111
|
+
rubygems_version: 2.2.0
|
94
112
|
signing_key:
|
95
113
|
specification_version: 4
|
96
114
|
summary: Runs commands.
|
97
115
|
test_files: []
|
98
|
-
|
99
116
|
has_rdoc: false
|