dew 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dew/models/server.rb +6 -2
- data/lib/dew/version.rb +1 -1
- data/spec/dew/models/server_spec.rb +1 -1
- metadata +80 -82
data/lib/dew/models/server.rb
CHANGED
@@ -32,8 +32,12 @@ class Server < FogModel
|
|
32
32
|
fog_object.tags['Username'] || 'ubuntu'
|
33
33
|
end
|
34
34
|
|
35
|
+
def ssh_port
|
36
|
+
fog_object.tags['SSHPort'] || '22'
|
37
|
+
end
|
38
|
+
|
35
39
|
def ssh
|
36
|
-
Gofer::Host.new(public_ip_address, username, :key_data => [File.read(Cloud.keyfile_path(key_name))], :paranoid => false, :quiet => true)
|
40
|
+
Gofer::Host.new(public_ip_address, username, :port => ssh_port, :key_data => [File.read(Cloud.keyfile_path(key_name))], :paranoid => false, :quiet => true)
|
37
41
|
end
|
38
42
|
|
39
43
|
def wait_until_ready ssh_timeout=THREE_MINUTES
|
@@ -73,7 +77,7 @@ class Server < FogModel
|
|
73
77
|
|
74
78
|
sanitize_key_file(key_name, keyfile_path)
|
75
79
|
|
76
|
-
"-i #{keyfile_path} -o StrictHostKeyChecking=no #{username}@#{public_ip_address}"
|
80
|
+
"-i #{keyfile_path} -o Port=#{ssh_port} -o StrictHostKeyChecking=no #{username}@#{public_ip_address}"
|
77
81
|
else
|
78
82
|
Inform.warning("Server %{id} has no key and therefore can not be accessed.", :id => id)
|
79
83
|
false
|
data/lib/dew/version.rb
CHANGED
@@ -99,7 +99,7 @@ describe Server do
|
|
99
99
|
File.should_receive(:chmod).with(0600, @path).and_return(true)
|
100
100
|
end
|
101
101
|
|
102
|
-
it { @server.credentials.should == "-i /key/path -o StrictHostKeyChecking=no ubuntu@10.4.5.6" }
|
102
|
+
it { @server.credentials.should == "-i /key/path -o Port=22 -o StrictHostKeyChecking=no ubuntu@10.4.5.6" }
|
103
103
|
end
|
104
104
|
|
105
105
|
context "key file does not exist" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dew
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-09-13 00:00:00.
|
13
|
-
default_executable:
|
12
|
+
date: 2011-09-13 00:00:00.000000000Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: inform
|
17
|
-
requirement: &
|
16
|
+
requirement: &70192214744020 !ruby/object:Gem::Requirement
|
18
17
|
none: false
|
19
18
|
requirements:
|
20
19
|
- - ~>
|
@@ -22,10 +21,10 @@ dependencies:
|
|
22
21
|
version: 0.0.4
|
23
22
|
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
version_requirements: *
|
24
|
+
version_requirements: *70192214744020
|
26
25
|
- !ruby/object:Gem::Dependency
|
27
26
|
name: clamp
|
28
|
-
requirement: &
|
27
|
+
requirement: &70192214743520 !ruby/object:Gem::Requirement
|
29
28
|
none: false
|
30
29
|
requirements:
|
31
30
|
- - ~>
|
@@ -33,10 +32,10 @@ dependencies:
|
|
33
32
|
version: 0.2.2
|
34
33
|
type: :runtime
|
35
34
|
prerelease: false
|
36
|
-
version_requirements: *
|
35
|
+
version_requirements: *70192214743520
|
37
36
|
- !ruby/object:Gem::Dependency
|
38
37
|
name: fog
|
39
|
-
requirement: &
|
38
|
+
requirement: &70192214743060 !ruby/object:Gem::Requirement
|
40
39
|
none: false
|
41
40
|
requirements:
|
42
41
|
- - ~>
|
@@ -44,10 +43,10 @@ dependencies:
|
|
44
43
|
version: 0.8.2
|
45
44
|
type: :runtime
|
46
45
|
prerelease: false
|
47
|
-
version_requirements: *
|
46
|
+
version_requirements: *70192214743060
|
48
47
|
- !ruby/object:Gem::Dependency
|
49
48
|
name: gofer
|
50
|
-
requirement: &
|
49
|
+
requirement: &70192214742600 !ruby/object:Gem::Requirement
|
51
50
|
none: false
|
52
51
|
requirements:
|
53
52
|
- - ~>
|
@@ -55,10 +54,10 @@ dependencies:
|
|
55
54
|
version: 0.2.5
|
56
55
|
type: :runtime
|
57
56
|
prerelease: false
|
58
|
-
version_requirements: *
|
57
|
+
version_requirements: *70192214742600
|
59
58
|
- !ruby/object:Gem::Dependency
|
60
59
|
name: highline
|
61
|
-
requirement: &
|
60
|
+
requirement: &70192214742100 !ruby/object:Gem::Requirement
|
62
61
|
none: false
|
63
62
|
requirements:
|
64
63
|
- - ~>
|
@@ -66,10 +65,10 @@ dependencies:
|
|
66
65
|
version: 1.6.2
|
67
66
|
type: :runtime
|
68
67
|
prerelease: false
|
69
|
-
version_requirements: *
|
68
|
+
version_requirements: *70192214742100
|
70
69
|
- !ruby/object:Gem::Dependency
|
71
70
|
name: terminal-table
|
72
|
-
requirement: &
|
71
|
+
requirement: &70192214741640 !ruby/object:Gem::Requirement
|
73
72
|
none: false
|
74
73
|
requirements:
|
75
74
|
- - ~>
|
@@ -77,10 +76,10 @@ dependencies:
|
|
77
76
|
version: 1.4.2
|
78
77
|
type: :runtime
|
79
78
|
prerelease: false
|
80
|
-
version_requirements: *
|
79
|
+
version_requirements: *70192214741640
|
81
80
|
- !ruby/object:Gem::Dependency
|
82
81
|
name: opensrs
|
83
|
-
requirement: &
|
82
|
+
requirement: &70192214741260 !ruby/object:Gem::Requirement
|
84
83
|
none: false
|
85
84
|
requirements:
|
86
85
|
- - ! '>='
|
@@ -88,10 +87,10 @@ dependencies:
|
|
88
87
|
version: '0'
|
89
88
|
type: :runtime
|
90
89
|
prerelease: false
|
91
|
-
version_requirements: *
|
90
|
+
version_requirements: *70192214741260
|
92
91
|
- !ruby/object:Gem::Dependency
|
93
92
|
name: nokogiri
|
94
|
-
requirement: &
|
93
|
+
requirement: &70192214740800 !ruby/object:Gem::Requirement
|
95
94
|
none: false
|
96
95
|
requirements:
|
97
96
|
- - ! '>='
|
@@ -99,10 +98,10 @@ dependencies:
|
|
99
98
|
version: '0'
|
100
99
|
type: :runtime
|
101
100
|
prerelease: false
|
102
|
-
version_requirements: *
|
101
|
+
version_requirements: *70192214740800
|
103
102
|
- !ruby/object:Gem::Dependency
|
104
103
|
name: rake
|
105
|
-
requirement: &
|
104
|
+
requirement: &70192214740260 !ruby/object:Gem::Requirement
|
106
105
|
none: false
|
107
106
|
requirements:
|
108
107
|
- - ~>
|
@@ -110,10 +109,10 @@ dependencies:
|
|
110
109
|
version: 0.8.7
|
111
110
|
type: :development
|
112
111
|
prerelease: false
|
113
|
-
version_requirements: *
|
112
|
+
version_requirements: *70192214740260
|
114
113
|
- !ruby/object:Gem::Dependency
|
115
114
|
name: rspec
|
116
|
-
requirement: &
|
115
|
+
requirement: &70192214739760 !ruby/object:Gem::Requirement
|
117
116
|
none: false
|
118
117
|
requirements:
|
119
118
|
- - ~>
|
@@ -121,10 +120,10 @@ dependencies:
|
|
121
120
|
version: 2.6.0
|
122
121
|
type: :development
|
123
122
|
prerelease: false
|
124
|
-
version_requirements: *
|
123
|
+
version_requirements: *70192214739760
|
125
124
|
- !ruby/object:Gem::Dependency
|
126
125
|
name: cucumber
|
127
|
-
requirement: &
|
126
|
+
requirement: &70192214739300 !ruby/object:Gem::Requirement
|
128
127
|
none: false
|
129
128
|
requirements:
|
130
129
|
- - ~>
|
@@ -132,10 +131,10 @@ dependencies:
|
|
132
131
|
version: 0.10.3
|
133
132
|
type: :development
|
134
133
|
prerelease: false
|
135
|
-
version_requirements: *
|
134
|
+
version_requirements: *70192214739300
|
136
135
|
- !ruby/object:Gem::Dependency
|
137
136
|
name: simplecov
|
138
|
-
requirement: &
|
137
|
+
requirement: &70192214738780 !ruby/object:Gem::Requirement
|
139
138
|
none: false
|
140
139
|
requirements:
|
141
140
|
- - ~>
|
@@ -143,10 +142,10 @@ dependencies:
|
|
143
142
|
version: 0.4.0
|
144
143
|
type: :development
|
145
144
|
prerelease: false
|
146
|
-
version_requirements: *
|
145
|
+
version_requirements: *70192214738780
|
147
146
|
- !ruby/object:Gem::Dependency
|
148
147
|
name: flay
|
149
|
-
requirement: &
|
148
|
+
requirement: &70192214719240 !ruby/object:Gem::Requirement
|
150
149
|
none: false
|
151
150
|
requirements:
|
152
151
|
- - ~>
|
@@ -154,10 +153,10 @@ dependencies:
|
|
154
153
|
version: 1.4.2
|
155
154
|
type: :development
|
156
155
|
prerelease: false
|
157
|
-
version_requirements: *
|
156
|
+
version_requirements: *70192214719240
|
158
157
|
- !ruby/object:Gem::Dependency
|
159
158
|
name: geminabox
|
160
|
-
requirement: &
|
159
|
+
requirement: &70192214718760 !ruby/object:Gem::Requirement
|
161
160
|
none: false
|
162
161
|
requirements:
|
163
162
|
- - ! '>='
|
@@ -165,7 +164,7 @@ dependencies:
|
|
165
164
|
version: '0'
|
166
165
|
type: :development
|
167
166
|
prerelease: false
|
168
|
-
version_requirements: *
|
167
|
+
version_requirements: *70192214718760
|
169
168
|
description: ! 'Dew is a layer between fog and the ground
|
170
169
|
|
171
170
|
'
|
@@ -176,72 +175,71 @@ executables:
|
|
176
175
|
extensions: []
|
177
176
|
extra_rdoc_files: []
|
178
177
|
files:
|
179
|
-
- lib/
|
180
|
-
- lib/dew.rb
|
178
|
+
- lib/dew/aws_resources.yaml
|
181
179
|
- lib/dew/base_command.rb
|
182
|
-
- lib/dew/
|
183
|
-
- lib/dew/commands/environments.rb
|
184
|
-
- lib/dew/commands/deploy.rb
|
180
|
+
- lib/dew/cloud.rb
|
185
181
|
- lib/dew/commands/ami.rb
|
186
|
-
- lib/dew/commands/deploy/templates/rvmrc
|
187
|
-
- lib/dew/commands/deploy/templates/known_hosts
|
188
|
-
- lib/dew/commands/deploy/templates/apache.conf.erb
|
189
|
-
- lib/dew/commands/console.rb
|
190
182
|
- lib/dew/commands/console/irb_override.rb
|
191
|
-
- lib/dew/
|
192
|
-
- lib/dew/
|
183
|
+
- lib/dew/commands/console.rb
|
184
|
+
- lib/dew/commands/deploy/templates/apache.conf.erb
|
185
|
+
- lib/dew/commands/deploy/templates/known_hosts
|
186
|
+
- lib/dew/commands/deploy/templates/rvmrc
|
187
|
+
- lib/dew/commands/deploy.rb
|
188
|
+
- lib/dew/commands/environments.rb
|
189
|
+
- lib/dew/commands/tidy.rb
|
190
|
+
- lib/dew/commands.rb
|
191
|
+
- lib/dew/controllers/amis_controller.rb
|
192
|
+
- lib/dew/controllers/deploy_controller.rb
|
193
|
+
- lib/dew/controllers/environments_controller.rb
|
194
|
+
- lib/dew/controllers.rb
|
193
195
|
- lib/dew/models/account.rb
|
194
|
-
- lib/dew/models/
|
195
|
-
- lib/dew/models/fog_model.rb
|
196
|
+
- lib/dew/models/database.rb
|
196
197
|
- lib/dew/models/deploy/puge.rb
|
197
198
|
- lib/dew/models/deploy/run.rb
|
198
|
-
- lib/dew/models/
|
199
|
+
- lib/dew/models/deploy.rb
|
199
200
|
- lib/dew/models/environment.rb
|
201
|
+
- lib/dew/models/fog_model.rb
|
200
202
|
- lib/dew/models/profile.rb
|
201
|
-
- lib/dew/
|
202
|
-
- lib/dew/
|
203
|
-
- lib/dew/controllers/environments_controller.rb
|
204
|
-
- lib/dew/controllers/deploy_controller.rb
|
205
|
-
- lib/dew/controllers/amis_controller.rb
|
206
|
-
- lib/dew/version.rb
|
203
|
+
- lib/dew/models/server.rb
|
204
|
+
- lib/dew/models.rb
|
207
205
|
- lib/dew/password.rb
|
208
|
-
- lib/dew/cloud.rb
|
209
206
|
- lib/dew/tasks/spec.rake
|
210
207
|
- lib/dew/validations.rb
|
211
|
-
- lib/dew/
|
212
|
-
- lib/dew/
|
208
|
+
- lib/dew/version.rb
|
209
|
+
- lib/dew/view.rb
|
210
|
+
- lib/dew.rb
|
211
|
+
- lib/tasks/spec.rake
|
213
212
|
- README.md
|
214
213
|
- LICENSE
|
214
|
+
- example/dew/accounts/development.yaml
|
215
215
|
- example/dew/profiles/template.yaml
|
216
|
-
- example/dew/profiles/test-light.yaml
|
217
216
|
- example/dew/profiles/test-full.yaml
|
218
|
-
- example/dew/
|
217
|
+
- example/dew/profiles/test-light.yaml
|
219
218
|
- Rakefile
|
220
|
-
- spec/dew/
|
221
|
-
- spec/dew/
|
222
|
-
- spec/dew/
|
219
|
+
- spec/dew/cloud_spec.rb
|
220
|
+
- spec/dew/controllers/amis_controller_spec.rb
|
221
|
+
- spec/dew/controllers/deploy_controller_spec.rb
|
222
|
+
- spec/dew/controllers/environments_controller_spec.rb
|
223
223
|
- spec/dew/models/account_spec.rb
|
224
|
+
- spec/dew/models/database_spec.rb
|
224
225
|
- spec/dew/models/deploy/puge_spec.rb
|
225
226
|
- spec/dew/models/deploy/run_spec.rb
|
226
227
|
- spec/dew/models/environment_spec.rb
|
228
|
+
- spec/dew/models/fog_model_spec.rb
|
227
229
|
- spec/dew/models/profile_spec.rb
|
228
|
-
- spec/dew/models/
|
229
|
-
- spec/dew/controllers/deploy_controller_spec.rb
|
230
|
-
- spec/dew/controllers/amis_controller_spec.rb
|
231
|
-
- spec/dew/controllers/environments_controller_spec.rb
|
230
|
+
- spec/dew/models/server_spec.rb
|
232
231
|
- spec/dew/password_spec.rb
|
233
232
|
- spec/dew/spec_helper.rb
|
234
|
-
- spec/dew/
|
235
|
-
- features/deploy-puge.feature
|
233
|
+
- spec/dew/view_spec.rb
|
236
234
|
- features/create-ami.feature
|
237
235
|
- features/create-environments.feature
|
238
|
-
- features/
|
239
|
-
- features/support/env.rb
|
240
|
-
- features/step_definitions/deploy-puge-steps.rb
|
236
|
+
- features/deploy-puge.feature
|
241
237
|
- features/step_definitions/aws-steps.rb
|
238
|
+
- features/step_definitions/deploy-puge-steps.rb
|
239
|
+
- features/support/env.rb
|
240
|
+
- features/support/hooks.rb
|
242
241
|
- config/cucumber.yaml
|
243
242
|
- bin/dew
|
244
|
-
has_rdoc: true
|
245
243
|
homepage: http://github.com/playup/dew
|
246
244
|
licenses: []
|
247
245
|
post_install_message:
|
@@ -262,32 +260,32 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
262
260
|
version: '0'
|
263
261
|
requirements: []
|
264
262
|
rubyforge_project:
|
265
|
-
rubygems_version: 1.
|
263
|
+
rubygems_version: 1.8.10
|
266
264
|
signing_key:
|
267
265
|
specification_version: 3
|
268
266
|
summary: Uses fog to access the cloud
|
269
267
|
test_files:
|
270
268
|
- Rakefile
|
271
|
-
- spec/dew/
|
272
|
-
- spec/dew/
|
273
|
-
- spec/dew/
|
269
|
+
- spec/dew/cloud_spec.rb
|
270
|
+
- spec/dew/controllers/amis_controller_spec.rb
|
271
|
+
- spec/dew/controllers/deploy_controller_spec.rb
|
272
|
+
- spec/dew/controllers/environments_controller_spec.rb
|
274
273
|
- spec/dew/models/account_spec.rb
|
274
|
+
- spec/dew/models/database_spec.rb
|
275
275
|
- spec/dew/models/deploy/puge_spec.rb
|
276
276
|
- spec/dew/models/deploy/run_spec.rb
|
277
277
|
- spec/dew/models/environment_spec.rb
|
278
|
+
- spec/dew/models/fog_model_spec.rb
|
278
279
|
- spec/dew/models/profile_spec.rb
|
279
|
-
- spec/dew/models/
|
280
|
-
- spec/dew/controllers/deploy_controller_spec.rb
|
281
|
-
- spec/dew/controllers/amis_controller_spec.rb
|
282
|
-
- spec/dew/controllers/environments_controller_spec.rb
|
280
|
+
- spec/dew/models/server_spec.rb
|
283
281
|
- spec/dew/password_spec.rb
|
284
282
|
- spec/dew/spec_helper.rb
|
285
|
-
- spec/dew/
|
286
|
-
- features/deploy-puge.feature
|
283
|
+
- spec/dew/view_spec.rb
|
287
284
|
- features/create-ami.feature
|
288
285
|
- features/create-environments.feature
|
289
|
-
- features/
|
290
|
-
- features/support/env.rb
|
291
|
-
- features/step_definitions/deploy-puge-steps.rb
|
286
|
+
- features/deploy-puge.feature
|
292
287
|
- features/step_definitions/aws-steps.rb
|
288
|
+
- features/step_definitions/deploy-puge-steps.rb
|
289
|
+
- features/support/env.rb
|
290
|
+
- features/support/hooks.rb
|
293
291
|
- config/cucumber.yaml
|