hammer_cli 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/bin/hammer +9 -2
- data/lib/hammer_cli/version.rb +1 -1
- metadata +42 -57
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1f5774b64875357f58a29b8f41584e1257696886
|
4
|
+
data.tar.gz: f1643f5fb4d1e545646e50ab663765b173684823
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8ecb458b3c3cf2705a513431c718e5f2bac89c8528f7f11fe1f7364e32c66f20431801787a9d501dbef713b3f9f031750aa24c5f51465bd91778bd129cc867f4
|
7
|
+
data.tar.gz: eec75c3547ddbe73e9ac5a772f617bb440da9f3ae425c330b7b53eaa9bd0841c246b09c4e3b085b1d9f9ea91754f6d955667816bd8fcce2108c3faed69f1c42f
|
data/bin/hammer
CHANGED
@@ -48,8 +48,15 @@ require 'hammer_cli'
|
|
48
48
|
# load modules set in config
|
49
49
|
modules = HammerCLI::Settings.get(:modules) || []
|
50
50
|
modules.each do |m|
|
51
|
-
|
51
|
+
begin
|
52
|
+
require m
|
53
|
+
rescue => e
|
54
|
+
logger.error "Error while loading module #{m}"
|
55
|
+
handler = HammerCLI::ExceptionHandler.new(:context => {}, :adapter => :base)
|
56
|
+
handler.handle_exception(e)
|
57
|
+
exit HammerCLI::EX_SOFTWARE
|
58
|
+
end
|
52
59
|
logger.info "Extension module #{m} loaded"
|
53
60
|
end
|
54
61
|
|
55
|
-
exit HammerCLI::MainCommand.run ||
|
62
|
+
exit HammerCLI::MainCommand.run || HammerCLI::EX_OK
|
data/lib/hammer_cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hammer_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.7
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Martin Bačovský
|
@@ -10,107 +9,94 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2013-10-
|
12
|
+
date: 2013-10-09 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: clamp
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
|
-
- -
|
18
|
+
- - '>='
|
21
19
|
- !ruby/object:Gem::Version
|
22
20
|
version: '0'
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
|
-
- -
|
25
|
+
- - '>='
|
29
26
|
- !ruby/object:Gem::Version
|
30
27
|
version: '0'
|
31
28
|
- !ruby/object:Gem::Dependency
|
32
29
|
name: rest-client
|
33
30
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
31
|
requirements:
|
36
|
-
- -
|
32
|
+
- - '>='
|
37
33
|
- !ruby/object:Gem::Version
|
38
34
|
version: '0'
|
39
35
|
type: :runtime
|
40
36
|
prerelease: false
|
41
37
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
38
|
requirements:
|
44
|
-
- -
|
39
|
+
- - '>='
|
45
40
|
- !ruby/object:Gem::Version
|
46
41
|
version: '0'
|
47
42
|
- !ruby/object:Gem::Dependency
|
48
43
|
name: logging
|
49
44
|
requirement: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
45
|
requirements:
|
52
|
-
- -
|
46
|
+
- - '>='
|
53
47
|
- !ruby/object:Gem::Version
|
54
48
|
version: '0'
|
55
49
|
type: :runtime
|
56
50
|
prerelease: false
|
57
51
|
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
52
|
requirements:
|
60
|
-
- -
|
53
|
+
- - '>='
|
61
54
|
- !ruby/object:Gem::Version
|
62
55
|
version: '0'
|
63
56
|
- !ruby/object:Gem::Dependency
|
64
57
|
name: awesome_print
|
65
58
|
requirement: !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
59
|
requirements:
|
68
|
-
- -
|
60
|
+
- - '>='
|
69
61
|
- !ruby/object:Gem::Version
|
70
62
|
version: '0'
|
71
63
|
type: :runtime
|
72
64
|
prerelease: false
|
73
65
|
version_requirements: !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
66
|
requirements:
|
76
|
-
- -
|
67
|
+
- - '>='
|
77
68
|
- !ruby/object:Gem::Version
|
78
69
|
version: '0'
|
79
70
|
- !ruby/object:Gem::Dependency
|
80
71
|
name: table_print
|
81
72
|
requirement: !ruby/object:Gem::Requirement
|
82
|
-
none: false
|
83
73
|
requirements:
|
84
|
-
- -
|
74
|
+
- - '>='
|
85
75
|
- !ruby/object:Gem::Version
|
86
76
|
version: '0'
|
87
77
|
type: :runtime
|
88
78
|
prerelease: false
|
89
79
|
version_requirements: !ruby/object:Gem::Requirement
|
90
|
-
none: false
|
91
80
|
requirements:
|
92
|
-
- -
|
81
|
+
- - '>='
|
93
82
|
- !ruby/object:Gem::Version
|
94
83
|
version: '0'
|
95
84
|
- !ruby/object:Gem::Dependency
|
96
85
|
name: highline
|
97
86
|
requirement: !ruby/object:Gem::Requirement
|
98
|
-
none: false
|
99
87
|
requirements:
|
100
|
-
- -
|
88
|
+
- - '>='
|
101
89
|
- !ruby/object:Gem::Version
|
102
90
|
version: '0'
|
103
91
|
type: :runtime
|
104
92
|
prerelease: false
|
105
93
|
version_requirements: !ruby/object:Gem::Requirement
|
106
|
-
none: false
|
107
94
|
requirements:
|
108
|
-
- -
|
95
|
+
- - '>='
|
109
96
|
- !ruby/object:Gem::Version
|
110
97
|
version: '0'
|
111
|
-
description:
|
112
|
-
|
113
|
-
'
|
98
|
+
description: |
|
99
|
+
Hammer cli provides universal extendable CLI interface for ruby apps
|
114
100
|
email: mbacovsk@redhat.com
|
115
101
|
executables:
|
116
102
|
- hammer
|
@@ -123,38 +109,38 @@ extra_rdoc_files:
|
|
123
109
|
- doc/design.png
|
124
110
|
- doc/design.uml
|
125
111
|
files:
|
126
|
-
- lib/hammer_cli.rb
|
112
|
+
- lib/hammer_cli/logger_watch.rb
|
113
|
+
- lib/hammer_cli/apipie/write_command.rb
|
114
|
+
- lib/hammer_cli/apipie/resource.rb
|
115
|
+
- lib/hammer_cli/apipie/read_command.rb
|
116
|
+
- lib/hammer_cli/apipie/options.rb
|
117
|
+
- lib/hammer_cli/apipie/command.rb
|
118
|
+
- lib/hammer_cli/logger.rb
|
127
119
|
- lib/hammer_cli/messages.rb
|
128
|
-
- lib/hammer_cli/
|
129
|
-
- lib/hammer_cli/
|
120
|
+
- lib/hammer_cli/option_formatters.rb
|
121
|
+
- lib/hammer_cli/abstract.rb
|
122
|
+
- lib/hammer_cli/apipie.rb
|
123
|
+
- lib/hammer_cli/version.rb
|
124
|
+
- lib/hammer_cli/exception_handler.rb
|
125
|
+
- lib/hammer_cli/output.rb
|
126
|
+
- lib/hammer_cli/autocompletion.rb
|
127
|
+
- lib/hammer_cli/shell.rb
|
130
128
|
- lib/hammer_cli/output/adapter/table.rb
|
131
129
|
- lib/hammer_cli/output/adapter/base.rb
|
132
130
|
- lib/hammer_cli/output/adapter/abstract.rb
|
133
131
|
- lib/hammer_cli/output/adapter/silent.rb
|
134
132
|
- lib/hammer_cli/output/adapter/csv.rb
|
133
|
+
- lib/hammer_cli/output/definition.rb
|
135
134
|
- lib/hammer_cli/output/adapter.rb
|
136
|
-
- lib/hammer_cli/output/output.rb
|
137
135
|
- lib/hammer_cli/output/dsl.rb
|
138
|
-
- lib/hammer_cli/output/
|
139
|
-
- lib/hammer_cli/
|
140
|
-
- lib/hammer_cli/
|
141
|
-
- lib/hammer_cli/
|
142
|
-
- lib/hammer_cli/logger_watch.rb
|
143
|
-
- lib/hammer_cli/logger.rb
|
144
|
-
- lib/hammer_cli/apipie.rb
|
145
|
-
- lib/hammer_cli/apipie/command.rb
|
146
|
-
- lib/hammer_cli/apipie/options.rb
|
147
|
-
- lib/hammer_cli/apipie/resource.rb
|
148
|
-
- lib/hammer_cli/apipie/write_command.rb
|
149
|
-
- lib/hammer_cli/apipie/read_command.rb
|
136
|
+
- lib/hammer_cli/output/formatters.rb
|
137
|
+
- lib/hammer_cli/output/output.rb
|
138
|
+
- lib/hammer_cli/output/fields.rb
|
139
|
+
- lib/hammer_cli/settings.rb
|
150
140
|
- lib/hammer_cli/validator.rb
|
151
|
-
- lib/hammer_cli/version.rb
|
152
141
|
- lib/hammer_cli/exit_codes.rb
|
153
|
-
- lib/hammer_cli/output.rb
|
154
|
-
- lib/hammer_cli/exception_handler.rb
|
155
142
|
- lib/hammer_cli/main.rb
|
156
|
-
- lib/hammer_cli
|
157
|
-
- lib/hammer_cli/settings.rb
|
143
|
+
- lib/hammer_cli.rb
|
158
144
|
- bin/hammer
|
159
145
|
- README.md
|
160
146
|
- LICENSE
|
@@ -165,27 +151,26 @@ files:
|
|
165
151
|
homepage: http://github.com/theforeman/hammer-cli
|
166
152
|
licenses:
|
167
153
|
- GPL-3
|
154
|
+
metadata: {}
|
168
155
|
post_install_message:
|
169
156
|
rdoc_options: []
|
170
157
|
require_paths:
|
171
158
|
- lib
|
172
159
|
required_ruby_version: !ruby/object:Gem::Requirement
|
173
|
-
none: false
|
174
160
|
requirements:
|
175
|
-
- -
|
161
|
+
- - '>='
|
176
162
|
- !ruby/object:Gem::Version
|
177
163
|
version: '0'
|
178
164
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
179
|
-
none: false
|
180
165
|
requirements:
|
181
|
-
- -
|
166
|
+
- - '>='
|
182
167
|
- !ruby/object:Gem::Version
|
183
168
|
version: '0'
|
184
169
|
requirements: []
|
185
170
|
rubyforge_project:
|
186
|
-
rubygems_version:
|
171
|
+
rubygems_version: 2.0.8
|
187
172
|
signing_key:
|
188
|
-
specification_version:
|
173
|
+
specification_version: 4
|
189
174
|
summary: Universal command-line interface
|
190
175
|
test_files: []
|
191
176
|
has_rdoc:
|