ztk 1.0.11 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +0 -1
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/Gemfile +2 -0
- data/README.md +1 -0
- data/Rakefile +3 -10
- data/lib/ztk.rb +1 -0
- data/lib/ztk/dsl/core.rb +13 -13
- data/lib/ztk/dsl/core/actions/find.rb +0 -1
- data/lib/ztk/dsl/core/relations/belongs_to.rb +1 -18
- data/lib/ztk/dsl/core/relations/has_many.rb +2 -15
- data/lib/ztk/locator.rb +57 -0
- data/lib/ztk/version.rb +1 -1
- data/spec/spec_helper.rb +4 -31
- data/spec/ztk/benchmark_spec.rb +14 -6
- data/spec/ztk/command_spec.rb +32 -24
- data/spec/ztk/locator_spec.rb +51 -0
- data/spec/ztk/ssh_spec.rb +87 -79
- data/ztk.gemspec +22 -23
- metadata +141 -108
- data/.rvmrc.template +0 -1
data/ztk.gemspec
CHANGED
@@ -17,34 +17,33 @@
|
|
17
17
|
# limitations under the License.
|
18
18
|
#
|
19
19
|
################################################################################
|
20
|
-
|
21
20
|
lib = File.expand_path('../lib', __FILE__)
|
22
21
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
23
22
|
require 'ztk/version'
|
24
23
|
|
25
|
-
Gem::Specification.new do |
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
24
|
+
Gem::Specification.new do |spec|
|
25
|
+
spec.name = "ztk"
|
26
|
+
spec.version = ZTK::VERSION
|
27
|
+
spec.authors = ["Zachary Patten"]
|
28
|
+
spec.email = ["zachary@jovelabs.com"]
|
29
|
+
spec.description = %q{Zachary's (DevOp) Tool Kit}
|
30
|
+
spec.summary = %q{Zachary's (DevOp) Tool Kit}
|
31
|
+
spec.homepage = "https://github.com/zpatten/ztk"
|
32
|
+
spec.license = "Apache 2.0"
|
31
33
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
gem.require_paths = ["lib"]
|
37
|
-
gem.version = ZTK::VERSION
|
34
|
+
spec.files = `git ls-files`.split($\)
|
35
|
+
spec.executables = spec.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
36
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
37
|
+
spec.require_paths = ["lib"]
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
39
|
+
spec.add_dependency("erubis")
|
40
|
+
spec.add_dependency("net-ssh")
|
41
|
+
spec.add_dependency("net-sftp")
|
42
|
+
spec.add_dependency("activesupport")
|
43
43
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
gem.add_development_dependency("redcarpet", ">= 0")
|
44
|
+
spec.add_development_dependency("pry")
|
45
|
+
spec.add_development_dependency("rake")
|
46
|
+
spec.add_development_dependency("rspec")
|
47
|
+
spec.add_development_dependency("yard")
|
48
|
+
spec.add_development_dependency("redcarpet")
|
50
49
|
end
|
metadata
CHANGED
@@ -1,140 +1,172 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: ztk
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.0
|
4
5
|
prerelease:
|
5
|
-
version: 1.0.11
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Zachary Patten
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2013-04-18 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: erubis
|
17
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
18
17
|
none: false
|
19
|
-
requirements:
|
20
|
-
- -
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version:
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
23
22
|
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
version_requirements:
|
26
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
27
31
|
name: net-ssh
|
28
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
29
33
|
none: false
|
30
|
-
requirements:
|
31
|
-
- -
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version:
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
34
38
|
type: :runtime
|
35
39
|
prerelease: false
|
36
|
-
version_requirements:
|
37
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
38
47
|
name: net-sftp
|
39
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
40
49
|
none: false
|
41
|
-
requirements:
|
42
|
-
- -
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
version:
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
45
54
|
type: :runtime
|
46
55
|
prerelease: false
|
47
|
-
version_requirements:
|
48
|
-
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
49
63
|
name: activesupport
|
50
|
-
requirement:
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
51
65
|
none: false
|
52
|
-
requirements:
|
53
|
-
- -
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version:
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
56
70
|
type: :runtime
|
57
71
|
prerelease: false
|
58
|
-
version_requirements:
|
59
|
-
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
60
79
|
name: pry
|
61
|
-
requirement:
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
62
81
|
none: false
|
63
|
-
requirements:
|
64
|
-
- -
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
version:
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
67
86
|
type: :development
|
68
87
|
prerelease: false
|
69
|
-
version_requirements:
|
70
|
-
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
71
95
|
name: rake
|
72
|
-
requirement:
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
73
97
|
none: false
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version:
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
78
102
|
type: :development
|
79
103
|
prerelease: false
|
80
|
-
version_requirements:
|
81
|
-
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
82
111
|
name: rspec
|
83
|
-
requirement:
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
84
113
|
none: false
|
85
|
-
requirements:
|
86
|
-
- -
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version:
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
89
118
|
type: :development
|
90
119
|
prerelease: false
|
91
|
-
version_requirements:
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
version: "0"
|
100
|
-
type: :development
|
101
|
-
prerelease: false
|
102
|
-
version_requirements: *id008
|
103
|
-
- !ruby/object:Gem::Dependency
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
104
127
|
name: yard
|
105
|
-
requirement:
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
106
129
|
none: false
|
107
|
-
requirements:
|
108
|
-
- -
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version:
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
111
134
|
type: :development
|
112
135
|
prerelease: false
|
113
|
-
version_requirements:
|
114
|
-
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
- !ruby/object:Gem::Dependency
|
115
143
|
name: redcarpet
|
116
|
-
requirement:
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
117
145
|
none: false
|
118
|
-
requirements:
|
119
|
-
- -
|
120
|
-
- !ruby/object:Gem::Version
|
121
|
-
version:
|
146
|
+
requirements:
|
147
|
+
- - ! '>='
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
122
150
|
type: :development
|
123
151
|
prerelease: false
|
124
|
-
version_requirements:
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ! '>='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
125
158
|
description: Zachary's (DevOp) Tool Kit
|
126
|
-
email:
|
159
|
+
email:
|
127
160
|
- zachary@jovelabs.com
|
128
|
-
executables:
|
161
|
+
executables:
|
129
162
|
- ztk
|
130
163
|
extensions: []
|
131
|
-
|
132
164
|
extra_rdoc_files: []
|
133
|
-
|
134
|
-
files:
|
165
|
+
files:
|
135
166
|
- .gitignore
|
136
167
|
- .rspec
|
137
|
-
- .
|
168
|
+
- .ruby-gemset
|
169
|
+
- .ruby-version
|
138
170
|
- .travis.yml
|
139
171
|
- .yardopts
|
140
172
|
- Gemfile
|
@@ -160,6 +192,7 @@ files:
|
|
160
192
|
- lib/ztk/dsl/core/relations.rb
|
161
193
|
- lib/ztk/dsl/core/relations/belongs_to.rb
|
162
194
|
- lib/ztk/dsl/core/relations/has_many.rb
|
195
|
+
- lib/ztk/locator.rb
|
163
196
|
- lib/ztk/logger.rb
|
164
197
|
- lib/ztk/parallel.rb
|
165
198
|
- lib/ztk/pty.rb
|
@@ -180,6 +213,7 @@ files:
|
|
180
213
|
- spec/ztk/command_spec.rb
|
181
214
|
- spec/ztk/config_spec.rb
|
182
215
|
- spec/ztk/dsl_spec.rb
|
216
|
+
- spec/ztk/locator_spec.rb
|
183
217
|
- spec/ztk/logger_spec.rb
|
184
218
|
- spec/ztk/parallel_spec.rb
|
185
219
|
- spec/ztk/pty_spec.rb
|
@@ -192,39 +226,37 @@ files:
|
|
192
226
|
- spec/ztk/version_spec.rb
|
193
227
|
- ztk.gemspec
|
194
228
|
homepage: https://github.com/zpatten/ztk
|
195
|
-
licenses:
|
196
|
-
|
229
|
+
licenses:
|
230
|
+
- Apache 2.0
|
197
231
|
post_install_message:
|
198
232
|
rdoc_options: []
|
199
|
-
|
200
|
-
require_paths:
|
233
|
+
require_paths:
|
201
234
|
- lib
|
202
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
235
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
203
236
|
none: false
|
204
|
-
requirements:
|
205
|
-
- -
|
206
|
-
- !ruby/object:Gem::Version
|
207
|
-
|
208
|
-
segments:
|
237
|
+
requirements:
|
238
|
+
- - ! '>='
|
239
|
+
- !ruby/object:Gem::Version
|
240
|
+
version: '0'
|
241
|
+
segments:
|
209
242
|
- 0
|
210
|
-
|
211
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
243
|
+
hash: 1144803051742143768
|
244
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
212
245
|
none: false
|
213
|
-
requirements:
|
214
|
-
- -
|
215
|
-
- !ruby/object:Gem::Version
|
216
|
-
|
217
|
-
segments:
|
246
|
+
requirements:
|
247
|
+
- - ! '>='
|
248
|
+
- !ruby/object:Gem::Version
|
249
|
+
version: '0'
|
250
|
+
segments:
|
218
251
|
- 0
|
219
|
-
|
252
|
+
hash: 1144803051742143768
|
220
253
|
requirements: []
|
221
|
-
|
222
254
|
rubyforge_project:
|
223
255
|
rubygems_version: 1.8.25
|
224
256
|
signing_key:
|
225
257
|
specification_version: 3
|
226
|
-
summary:
|
227
|
-
test_files:
|
258
|
+
summary: Zachary's (DevOp) Tool Kit
|
259
|
+
test_files:
|
228
260
|
- spec/spec_helper.rb
|
229
261
|
- spec/support/test-config.rb
|
230
262
|
- spec/support/test-template.txt.erb
|
@@ -234,6 +266,7 @@ test_files:
|
|
234
266
|
- spec/ztk/command_spec.rb
|
235
267
|
- spec/ztk/config_spec.rb
|
236
268
|
- spec/ztk/dsl_spec.rb
|
269
|
+
- spec/ztk/locator_spec.rb
|
237
270
|
- spec/ztk/logger_spec.rb
|
238
271
|
- spec/ztk/parallel_spec.rb
|
239
272
|
- spec/ztk/pty_spec.rb
|
data/.rvmrc.template
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
rvm use ruby-1.9.3@ztk --create
|