ztk 1.6.3 → 1.6.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.ruby-version +1 -1
- data/lib/ztk/ssh.rb +3 -3
- data/lib/ztk/ssh/download.rb +1 -1
- data/lib/ztk/ssh/upload.rb +1 -1
- data/lib/ztk/version.rb +1 -1
- metadata +148 -158
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
ree
|
data/lib/ztk/ssh.rb
CHANGED
@@ -19,7 +19,7 @@ module ZTK
|
|
19
19
|
#
|
20
20
|
# If you want to specify SSH options you can:
|
21
21
|
#
|
22
|
-
# keys = File.expand_path(File.join(
|
22
|
+
# keys = File.expand_path(File.join(ENV['HOME'], '.ssh', 'id_rsa'))
|
23
23
|
# ssh = ZTK::SSH.new(:host_name => '127.0.0.1', :user => ENV['USER'], :keys => keys)
|
24
24
|
#
|
25
25
|
# = Configuration Examples:
|
@@ -36,8 +36,8 @@ module ZTK
|
|
36
36
|
# Specify an identity file:
|
37
37
|
#
|
38
38
|
# ssh.config do |config|
|
39
|
-
# config.keys = File.expand_path(File.join(
|
40
|
-
# config.proxy_keys = File.expand_path(File.join(
|
39
|
+
# config.keys = File.expand_path(File.join(ENV['HOME'], '.ssh', 'id_rsa'))
|
40
|
+
# config.proxy_keys = File.expand_path(File.join(ENV['HOME'], '.ssh', 'id_rsa'))
|
41
41
|
# end
|
42
42
|
#
|
43
43
|
# Specify a timeout:
|
data/lib/ztk/ssh/download.rb
CHANGED
@@ -22,7 +22,7 @@ module ZTK
|
|
22
22
|
# config.host_name = "127.0.0.1"
|
23
23
|
# end
|
24
24
|
# local = File.expand_path(File.join(ZTK::Locator.root, "tmp", "id_rsa.pub"))
|
25
|
-
# remote = File.expand_path(File.join(
|
25
|
+
# remote = File.expand_path(File.join(ENV['HOME'], ".ssh", "id_rsa.pub"))
|
26
26
|
# ssh.download(remote, local)
|
27
27
|
def download(remote, local, options={})
|
28
28
|
options = {:recursive => ::File.directory?(local) }.merge(options)
|
data/lib/ztk/ssh/upload.rb
CHANGED
@@ -13,7 +13,7 @@ module ZTK
|
|
13
13
|
# config.user = ENV["USER"]
|
14
14
|
# config.host_name = "127.0.0.1"
|
15
15
|
# end
|
16
|
-
# local = File.expand_path(File.join(
|
16
|
+
# local = File.expand_path(File.join(ENV['HOME'], ".ssh", "id_rsa.pub"))
|
17
17
|
# remote = File.expand_path(File.join(ZTK::Locator.root, "tmp", "id_rsa.pub"))
|
18
18
|
# ssh.upload(local, remote)
|
19
19
|
#
|
data/lib/ztk/version.rb
CHANGED
metadata
CHANGED
@@ -1,184 +1,172 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: ztk
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 7
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 6
|
9
|
+
- 4
|
10
|
+
version: 1.6.4
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Zachary Patten
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
+
|
18
|
+
date: 2013-07-01 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
17
22
|
none: false
|
18
|
-
requirements:
|
19
|
-
- -
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
|
22
|
-
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
hash: 3
|
27
|
+
segments:
|
28
|
+
- 0
|
29
|
+
version: "0"
|
23
30
|
prerelease: false
|
24
|
-
|
31
|
+
type: :runtime
|
32
|
+
requirement: *id001
|
33
|
+
name: activesupport
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
25
36
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
hash: 3
|
41
|
+
segments:
|
42
|
+
- 0
|
43
|
+
version: "0"
|
44
|
+
prerelease: false
|
45
|
+
type: :runtime
|
46
|
+
requirement: *id002
|
31
47
|
name: erubis
|
32
|
-
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
33
50
|
none: false
|
34
|
-
requirements:
|
35
|
-
- -
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
|
38
|
-
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
hash: 3
|
55
|
+
segments:
|
56
|
+
- 0
|
57
|
+
version: "0"
|
39
58
|
prerelease: false
|
40
|
-
|
41
|
-
|
42
|
-
requirements:
|
43
|
-
- - ! '>='
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: '0'
|
46
|
-
- !ruby/object:Gem::Dependency
|
59
|
+
type: :runtime
|
60
|
+
requirement: *id003
|
47
61
|
name: net-ssh
|
48
|
-
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
49
64
|
none: false
|
50
|
-
requirements:
|
51
|
-
- -
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
|
54
|
-
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
hash: 3
|
69
|
+
segments:
|
70
|
+
- 0
|
71
|
+
version: "0"
|
55
72
|
prerelease: false
|
56
|
-
|
57
|
-
|
58
|
-
requirements:
|
59
|
-
- - ! '>='
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
- !ruby/object:Gem::Dependency
|
73
|
+
type: :runtime
|
74
|
+
requirement: *id004
|
63
75
|
name: net-sftp
|
64
|
-
|
76
|
+
- !ruby/object:Gem::Dependency
|
77
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
65
78
|
none: false
|
66
|
-
requirements:
|
67
|
-
- -
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
|
70
|
-
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
hash: 3
|
83
|
+
segments:
|
84
|
+
- 0
|
85
|
+
version: "0"
|
71
86
|
prerelease: false
|
72
|
-
|
73
|
-
|
74
|
-
requirements:
|
75
|
-
- - ! '>='
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '0'
|
78
|
-
- !ruby/object:Gem::Dependency
|
87
|
+
type: :development
|
88
|
+
requirement: *id005
|
79
89
|
name: pry
|
80
|
-
|
90
|
+
- !ruby/object:Gem::Dependency
|
91
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
81
92
|
none: false
|
82
|
-
requirements:
|
83
|
-
- -
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
|
86
|
-
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
hash: 3
|
97
|
+
segments:
|
98
|
+
- 0
|
99
|
+
version: "0"
|
87
100
|
prerelease: false
|
88
|
-
|
89
|
-
|
90
|
-
requirements:
|
91
|
-
- - ! '>='
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
version: '0'
|
94
|
-
- !ruby/object:Gem::Dependency
|
101
|
+
type: :development
|
102
|
+
requirement: *id006
|
95
103
|
name: rake
|
96
|
-
|
104
|
+
- !ruby/object:Gem::Dependency
|
105
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
97
106
|
none: false
|
98
|
-
requirements:
|
99
|
-
- -
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
|
102
|
-
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
hash: 3
|
111
|
+
segments:
|
112
|
+
- 0
|
113
|
+
version: "0"
|
103
114
|
prerelease: false
|
104
|
-
|
105
|
-
|
106
|
-
requirements:
|
107
|
-
- - ! '>='
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '0'
|
110
|
-
- !ruby/object:Gem::Dependency
|
115
|
+
type: :development
|
116
|
+
requirement: *id007
|
111
117
|
name: rspec
|
112
|
-
|
118
|
+
- !ruby/object:Gem::Dependency
|
119
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
113
120
|
none: false
|
114
|
-
requirements:
|
115
|
-
- -
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
|
118
|
-
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
hash: 3
|
125
|
+
segments:
|
126
|
+
- 0
|
127
|
+
version: "0"
|
119
128
|
prerelease: false
|
120
|
-
|
121
|
-
|
122
|
-
requirements:
|
123
|
-
- - ! '>='
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
version: '0'
|
126
|
-
- !ruby/object:Gem::Dependency
|
129
|
+
type: :development
|
130
|
+
requirement: *id008
|
127
131
|
name: yard
|
128
|
-
|
132
|
+
- !ruby/object:Gem::Dependency
|
133
|
+
version_requirements: &id009 !ruby/object:Gem::Requirement
|
129
134
|
none: false
|
130
|
-
requirements:
|
131
|
-
- -
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
|
134
|
-
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
hash: 3
|
139
|
+
segments:
|
140
|
+
- 0
|
141
|
+
version: "0"
|
135
142
|
prerelease: false
|
136
|
-
|
137
|
-
|
138
|
-
requirements:
|
139
|
-
- - ! '>='
|
140
|
-
- !ruby/object:Gem::Version
|
141
|
-
version: '0'
|
142
|
-
- !ruby/object:Gem::Dependency
|
143
|
+
type: :development
|
144
|
+
requirement: *id009
|
143
145
|
name: redcarpet
|
144
|
-
|
146
|
+
- !ruby/object:Gem::Dependency
|
147
|
+
version_requirements: &id010 !ruby/object:Gem::Requirement
|
145
148
|
none: false
|
146
|
-
requirements:
|
147
|
-
- -
|
148
|
-
- !ruby/object:Gem::Version
|
149
|
-
|
150
|
-
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
hash: 3
|
153
|
+
segments:
|
154
|
+
- 0
|
155
|
+
version: "0"
|
151
156
|
prerelease: false
|
152
|
-
version_requirements: !ruby/object:Gem::Requirement
|
153
|
-
none: false
|
154
|
-
requirements:
|
155
|
-
- - ! '>='
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
version: '0'
|
158
|
-
- !ruby/object:Gem::Dependency
|
159
|
-
name: coveralls
|
160
|
-
requirement: !ruby/object:Gem::Requirement
|
161
|
-
none: false
|
162
|
-
requirements:
|
163
|
-
- - ! '>='
|
164
|
-
- !ruby/object:Gem::Version
|
165
|
-
version: '0'
|
166
157
|
type: :development
|
167
|
-
|
168
|
-
|
169
|
-
none: false
|
170
|
-
requirements:
|
171
|
-
- - ! '>='
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '0'
|
158
|
+
requirement: *id010
|
159
|
+
name: coveralls
|
174
160
|
description: Zachary's (DevOp) Tool Kit
|
175
|
-
email:
|
161
|
+
email:
|
176
162
|
- zachary AT jovelabs DOT com
|
177
|
-
executables:
|
163
|
+
executables:
|
178
164
|
- ztk
|
179
165
|
extensions: []
|
166
|
+
|
180
167
|
extra_rdoc_files: []
|
181
|
-
|
168
|
+
|
169
|
+
files:
|
182
170
|
- .gitignore
|
183
171
|
- .rspec
|
184
172
|
- .ruby-gemset
|
@@ -261,37 +249,39 @@ files:
|
|
261
249
|
- spec/ztk/version_spec.rb
|
262
250
|
- ztk.gemspec
|
263
251
|
homepage: https://github.com/zpatten/ztk
|
264
|
-
licenses:
|
252
|
+
licenses:
|
265
253
|
- Apache 2.0
|
266
254
|
post_install_message:
|
267
255
|
rdoc_options: []
|
268
|
-
|
256
|
+
|
257
|
+
require_paths:
|
269
258
|
- lib
|
270
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
259
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
271
260
|
none: false
|
272
|
-
requirements:
|
273
|
-
- -
|
274
|
-
- !ruby/object:Gem::Version
|
275
|
-
|
276
|
-
segments:
|
261
|
+
requirements:
|
262
|
+
- - ">="
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
hash: 3
|
265
|
+
segments:
|
277
266
|
- 0
|
278
|
-
|
279
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
267
|
+
version: "0"
|
268
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
280
269
|
none: false
|
281
|
-
requirements:
|
282
|
-
- -
|
283
|
-
- !ruby/object:Gem::Version
|
284
|
-
|
285
|
-
segments:
|
270
|
+
requirements:
|
271
|
+
- - ">="
|
272
|
+
- !ruby/object:Gem::Version
|
273
|
+
hash: 3
|
274
|
+
segments:
|
286
275
|
- 0
|
287
|
-
|
276
|
+
version: "0"
|
288
277
|
requirements: []
|
278
|
+
|
289
279
|
rubyforge_project:
|
290
280
|
rubygems_version: 1.8.25
|
291
281
|
signing_key:
|
292
282
|
specification_version: 3
|
293
283
|
summary: Zachary's (DevOp) Tool Kit
|
294
|
-
test_files:
|
284
|
+
test_files:
|
295
285
|
- spec/spec_helper.rb
|
296
286
|
- spec/support/before_install.sh
|
297
287
|
- spec/support/test-config.rb
|