dew 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
data/bin/dew CHANGED
@@ -6,7 +6,7 @@ class DewCommand < DewBaseCommand
6
6
  option ['-a', '--account'], "ACCOUNT", "AWS account", :default => ENV['DEW_ACCOUNT'] || 'development'
7
7
  option ['-q', '--quiet'], :flag, "Quiet mode, disables logging", :default => false
8
8
  option ['-v', '--verbose'], :flag, "Verbose mode, print debug output", :default => ENV['DEW_VERBOSE']
9
- option '--debug', :flag, "Show stacktraces on error", :default => false
9
+ option '--debug', :flag, "Show stacktraces on error", :default => ENV['DEW_DEBUG']
10
10
  option '--version', :flag, "Prints the dew version" do
11
11
  puts "dew version #{Dew::VERSION}"
12
12
  exit(0)
@@ -63,7 +63,7 @@ class DewCommand < DewBaseCommand
63
63
  raise
64
64
  else
65
65
  error_message += "(and/or run again with %{flag} flag, or %{env} in your environment)\n"
66
- error_args.merge!(:flag => "--debug", :env => "AWS_DEBUG=1")
66
+ error_args.merge!(:flag => "--debug", :env => "DEW_DEBUG=1")
67
67
  Inform.error(error_message, error_args)
68
68
  Kernel.exit 1
69
69
  end
@@ -107,11 +107,11 @@ class EnvironmentsCommand < Clamp::Command
107
107
 
108
108
  def execute
109
109
  if file1.include?(':')
110
- direction = :to
110
+ direction = :to_local
111
111
  env_name, src_file = file1.split(':')
112
112
  dest_file = file2
113
113
  elsif file2.include?(':')
114
- direction = :from
114
+ direction = :from_local
115
115
  src_file = file1
116
116
  env_name, dest_file = file2.split(':')
117
117
  else
@@ -130,7 +130,7 @@ class EnvironmentsCommand < Clamp::Command
130
130
  options << '-v' if verbose?
131
131
  options << "-l #{limit}" if limit
132
132
  options << "-P#{port}" if port
133
- command = "scp #{options.join(' ')} #{args.join(' ')} #{direction == :to ? "#{[host, src_file].join(':')} #{dest_file}" : "#{[host, src_file].join(':')} #{dest_file}"}"
133
+ command = "scp #{options.join(' ')} #{args.join(' ')} #{direction == :to_local ? "#{[host, src_file].join(':')} #{dest_file}" : "#{src_file} #{[host, dest_file].join(':')}"}"
134
134
  Inform.debug("Running %{command}", :command => command)
135
135
  system command
136
136
  end
@@ -1,3 +1,3 @@
1
1
  module Dew
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
metadata CHANGED
@@ -1,214 +1,218 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: dew
3
- version: !ruby/object:Gem::Version
4
- version: 0.2.6
3
+ version: !ruby/object:Gem::Version
5
4
  prerelease:
5
+ version: 0.2.7
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - PlayUp Devops
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-13 00:00:00.000000000Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
12
+
13
+ date: 2011-09-21 00:00:00 +10:00
14
+ default_executable:
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
15
17
  name: inform
16
- requirement: &70192214744020 !ruby/object:Gem::Requirement
18
+ prerelease: false
19
+ requirement: &id001 !ruby/object:Gem::Requirement
17
20
  none: false
18
- requirements:
21
+ requirements:
19
22
  - - ~>
20
- - !ruby/object:Gem::Version
23
+ - !ruby/object:Gem::Version
21
24
  version: 0.0.4
22
25
  type: :runtime
23
- prerelease: false
24
- version_requirements: *70192214744020
25
- - !ruby/object:Gem::Dependency
26
+ version_requirements: *id001
27
+ - !ruby/object:Gem::Dependency
26
28
  name: clamp
27
- requirement: &70192214743520 !ruby/object:Gem::Requirement
29
+ prerelease: false
30
+ requirement: &id002 !ruby/object:Gem::Requirement
28
31
  none: false
29
- requirements:
32
+ requirements:
30
33
  - - ~>
31
- - !ruby/object:Gem::Version
34
+ - !ruby/object:Gem::Version
32
35
  version: 0.2.2
33
36
  type: :runtime
34
- prerelease: false
35
- version_requirements: *70192214743520
36
- - !ruby/object:Gem::Dependency
37
+ version_requirements: *id002
38
+ - !ruby/object:Gem::Dependency
37
39
  name: fog
38
- requirement: &70192214743060 !ruby/object:Gem::Requirement
40
+ prerelease: false
41
+ requirement: &id003 !ruby/object:Gem::Requirement
39
42
  none: false
40
- requirements:
43
+ requirements:
41
44
  - - ~>
42
- - !ruby/object:Gem::Version
45
+ - !ruby/object:Gem::Version
43
46
  version: 0.8.2
44
47
  type: :runtime
45
- prerelease: false
46
- version_requirements: *70192214743060
47
- - !ruby/object:Gem::Dependency
48
+ version_requirements: *id003
49
+ - !ruby/object:Gem::Dependency
48
50
  name: gofer
49
- requirement: &70192214742600 !ruby/object:Gem::Requirement
51
+ prerelease: false
52
+ requirement: &id004 !ruby/object:Gem::Requirement
50
53
  none: false
51
- requirements:
54
+ requirements:
52
55
  - - ~>
53
- - !ruby/object:Gem::Version
56
+ - !ruby/object:Gem::Version
54
57
  version: 0.2.5
55
58
  type: :runtime
56
- prerelease: false
57
- version_requirements: *70192214742600
58
- - !ruby/object:Gem::Dependency
59
+ version_requirements: *id004
60
+ - !ruby/object:Gem::Dependency
59
61
  name: highline
60
- requirement: &70192214742100 !ruby/object:Gem::Requirement
62
+ prerelease: false
63
+ requirement: &id005 !ruby/object:Gem::Requirement
61
64
  none: false
62
- requirements:
65
+ requirements:
63
66
  - - ~>
64
- - !ruby/object:Gem::Version
67
+ - !ruby/object:Gem::Version
65
68
  version: 1.6.2
66
69
  type: :runtime
67
- prerelease: false
68
- version_requirements: *70192214742100
69
- - !ruby/object:Gem::Dependency
70
+ version_requirements: *id005
71
+ - !ruby/object:Gem::Dependency
70
72
  name: terminal-table
71
- requirement: &70192214741640 !ruby/object:Gem::Requirement
73
+ prerelease: false
74
+ requirement: &id006 !ruby/object:Gem::Requirement
72
75
  none: false
73
- requirements:
76
+ requirements:
74
77
  - - ~>
75
- - !ruby/object:Gem::Version
78
+ - !ruby/object:Gem::Version
76
79
  version: 1.4.2
77
80
  type: :runtime
78
- prerelease: false
79
- version_requirements: *70192214741640
80
- - !ruby/object:Gem::Dependency
81
+ version_requirements: *id006
82
+ - !ruby/object:Gem::Dependency
81
83
  name: opensrs
82
- requirement: &70192214741260 !ruby/object:Gem::Requirement
84
+ prerelease: false
85
+ requirement: &id007 !ruby/object:Gem::Requirement
83
86
  none: false
84
- requirements:
85
- - - ! '>='
86
- - !ruby/object:Gem::Version
87
- version: '0'
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: "0"
88
91
  type: :runtime
89
- prerelease: false
90
- version_requirements: *70192214741260
91
- - !ruby/object:Gem::Dependency
92
+ version_requirements: *id007
93
+ - !ruby/object:Gem::Dependency
92
94
  name: nokogiri
93
- requirement: &70192214740800 !ruby/object:Gem::Requirement
95
+ prerelease: false
96
+ requirement: &id008 !ruby/object:Gem::Requirement
94
97
  none: false
95
- requirements:
96
- - - ! '>='
97
- - !ruby/object:Gem::Version
98
- version: '0'
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: "0"
99
102
  type: :runtime
100
- prerelease: false
101
- version_requirements: *70192214740800
102
- - !ruby/object:Gem::Dependency
103
+ version_requirements: *id008
104
+ - !ruby/object:Gem::Dependency
103
105
  name: rake
104
- requirement: &70192214740260 !ruby/object:Gem::Requirement
106
+ prerelease: false
107
+ requirement: &id009 !ruby/object:Gem::Requirement
105
108
  none: false
106
- requirements:
109
+ requirements:
107
110
  - - ~>
108
- - !ruby/object:Gem::Version
111
+ - !ruby/object:Gem::Version
109
112
  version: 0.8.7
110
113
  type: :development
111
- prerelease: false
112
- version_requirements: *70192214740260
113
- - !ruby/object:Gem::Dependency
114
+ version_requirements: *id009
115
+ - !ruby/object:Gem::Dependency
114
116
  name: rspec
115
- requirement: &70192214739760 !ruby/object:Gem::Requirement
117
+ prerelease: false
118
+ requirement: &id010 !ruby/object:Gem::Requirement
116
119
  none: false
117
- requirements:
120
+ requirements:
118
121
  - - ~>
119
- - !ruby/object:Gem::Version
122
+ - !ruby/object:Gem::Version
120
123
  version: 2.6.0
121
124
  type: :development
122
- prerelease: false
123
- version_requirements: *70192214739760
124
- - !ruby/object:Gem::Dependency
125
+ version_requirements: *id010
126
+ - !ruby/object:Gem::Dependency
125
127
  name: cucumber
126
- requirement: &70192214739300 !ruby/object:Gem::Requirement
128
+ prerelease: false
129
+ requirement: &id011 !ruby/object:Gem::Requirement
127
130
  none: false
128
- requirements:
131
+ requirements:
129
132
  - - ~>
130
- - !ruby/object:Gem::Version
133
+ - !ruby/object:Gem::Version
131
134
  version: 0.10.3
132
135
  type: :development
133
- prerelease: false
134
- version_requirements: *70192214739300
135
- - !ruby/object:Gem::Dependency
136
+ version_requirements: *id011
137
+ - !ruby/object:Gem::Dependency
136
138
  name: simplecov
137
- requirement: &70192214738780 !ruby/object:Gem::Requirement
139
+ prerelease: false
140
+ requirement: &id012 !ruby/object:Gem::Requirement
138
141
  none: false
139
- requirements:
142
+ requirements:
140
143
  - - ~>
141
- - !ruby/object:Gem::Version
144
+ - !ruby/object:Gem::Version
142
145
  version: 0.4.0
143
146
  type: :development
144
- prerelease: false
145
- version_requirements: *70192214738780
146
- - !ruby/object:Gem::Dependency
147
+ version_requirements: *id012
148
+ - !ruby/object:Gem::Dependency
147
149
  name: flay
148
- requirement: &70192214719240 !ruby/object:Gem::Requirement
150
+ prerelease: false
151
+ requirement: &id013 !ruby/object:Gem::Requirement
149
152
  none: false
150
- requirements:
153
+ requirements:
151
154
  - - ~>
152
- - !ruby/object:Gem::Version
155
+ - !ruby/object:Gem::Version
153
156
  version: 1.4.2
154
157
  type: :development
155
- prerelease: false
156
- version_requirements: *70192214719240
157
- - !ruby/object:Gem::Dependency
158
+ version_requirements: *id013
159
+ - !ruby/object:Gem::Dependency
158
160
  name: geminabox
159
- requirement: &70192214718760 !ruby/object:Gem::Requirement
161
+ prerelease: false
162
+ requirement: &id014 !ruby/object:Gem::Requirement
160
163
  none: false
161
- requirements:
162
- - - ! '>='
163
- - !ruby/object:Gem::Version
164
- version: '0'
164
+ requirements:
165
+ - - ">="
166
+ - !ruby/object:Gem::Version
167
+ version: "0"
165
168
  type: :development
166
- prerelease: false
167
- version_requirements: *70192214718760
168
- description: ! 'Dew is a layer between fog and the ground
169
+ version_requirements: *id014
170
+ description: |
171
+ Dew is a layer between fog and the ground
169
172
 
170
- '
171
- email:
173
+ email:
172
174
  - devops@playup.com
173
- executables:
175
+ executables:
174
176
  - dew
175
177
  extensions: []
178
+
176
179
  extra_rdoc_files: []
177
- files:
178
- - lib/dew/aws_resources.yaml
180
+
181
+ files:
182
+ - lib/dew.rb
183
+ - lib/tasks/spec.rake
184
+ - lib/dew/commands.rb
179
185
  - lib/dew/base_command.rb
180
- - lib/dew/cloud.rb
181
- - lib/dew/commands/ami.rb
186
+ - lib/dew/models.rb
182
187
  - lib/dew/commands/console/irb_override.rb
188
+ - lib/dew/commands/deploy.rb
189
+ - lib/dew/commands/environments.rb
183
190
  - lib/dew/commands/console.rb
184
- - lib/dew/commands/deploy/templates/apache.conf.erb
185
191
  - lib/dew/commands/deploy/templates/known_hosts
186
192
  - lib/dew/commands/deploy/templates/rvmrc
187
- - lib/dew/commands/deploy.rb
188
- - lib/dew/commands/environments.rb
193
+ - lib/dew/commands/deploy/templates/apache.conf.erb
194
+ - lib/dew/commands/ami.rb
189
195
  - lib/dew/commands/tidy.rb
190
- - lib/dew/commands.rb
191
- - lib/dew/controllers/amis_controller.rb
192
196
  - lib/dew/controllers/deploy_controller.rb
193
197
  - lib/dew/controllers/environments_controller.rb
198
+ - lib/dew/controllers/amis_controller.rb
199
+ - lib/dew/cloud.rb
194
200
  - lib/dew/controllers.rb
195
- - lib/dew/models/account.rb
201
+ - lib/dew/tasks/spec.rake
202
+ - lib/dew/models/deploy.rb
203
+ - lib/dew/models/fog_model.rb
196
204
  - lib/dew/models/database.rb
197
205
  - lib/dew/models/deploy/puge.rb
198
206
  - lib/dew/models/deploy/run.rb
199
- - lib/dew/models/deploy.rb
207
+ - lib/dew/models/server.rb
200
208
  - lib/dew/models/environment.rb
201
- - lib/dew/models/fog_model.rb
202
209
  - lib/dew/models/profile.rb
203
- - lib/dew/models/server.rb
204
- - lib/dew/models.rb
210
+ - lib/dew/models/account.rb
211
+ - lib/dew/view.rb
205
212
  - lib/dew/password.rb
206
- - lib/dew/tasks/spec.rake
207
213
  - lib/dew/validations.rb
208
214
  - lib/dew/version.rb
209
- - lib/dew/view.rb
210
- - lib/dew.rb
211
- - lib/tasks/spec.rake
215
+ - lib/dew/aws_resources.yaml
212
216
  - README.md
213
217
  - LICENSE
214
218
  - example/dew/accounts/development.yaml
@@ -216,76 +220,80 @@ files:
216
220
  - example/dew/profiles/test-full.yaml
217
221
  - example/dew/profiles/test-light.yaml
218
222
  - Rakefile
219
- - spec/dew/cloud_spec.rb
220
- - spec/dew/controllers/amis_controller_spec.rb
223
+ - spec/dew/password_spec.rb
221
224
  - spec/dew/controllers/deploy_controller_spec.rb
222
225
  - spec/dew/controllers/environments_controller_spec.rb
223
- - spec/dew/models/account_spec.rb
226
+ - spec/dew/controllers/amis_controller_spec.rb
227
+ - spec/dew/view_spec.rb
228
+ - spec/dew/spec_helper.rb
229
+ - spec/dew/cloud_spec.rb
224
230
  - spec/dew/models/database_spec.rb
225
- - spec/dew/models/deploy/puge_spec.rb
226
231
  - spec/dew/models/deploy/run_spec.rb
227
- - spec/dew/models/environment_spec.rb
228
- - spec/dew/models/fog_model_spec.rb
232
+ - spec/dew/models/deploy/puge_spec.rb
229
233
  - spec/dew/models/profile_spec.rb
234
+ - spec/dew/models/environment_spec.rb
230
235
  - spec/dew/models/server_spec.rb
231
- - spec/dew/password_spec.rb
232
- - spec/dew/spec_helper.rb
233
- - spec/dew/view_spec.rb
234
- - features/create-ami.feature
236
+ - spec/dew/models/account_spec.rb
237
+ - spec/dew/models/fog_model_spec.rb
235
238
  - features/create-environments.feature
236
239
  - features/deploy-puge.feature
240
+ - features/create-ami.feature
237
241
  - features/step_definitions/aws-steps.rb
238
242
  - features/step_definitions/deploy-puge-steps.rb
239
- - features/support/env.rb
240
243
  - features/support/hooks.rb
244
+ - features/support/env.rb
241
245
  - config/cucumber.yaml
242
246
  - bin/dew
247
+ has_rdoc: true
243
248
  homepage: http://github.com/playup/dew
244
249
  licenses: []
250
+
245
251
  post_install_message:
246
252
  rdoc_options: []
247
- require_paths:
253
+
254
+ require_paths:
248
255
  - lib
249
- required_ruby_version: !ruby/object:Gem::Requirement
256
+ required_ruby_version: !ruby/object:Gem::Requirement
250
257
  none: false
251
- requirements:
252
- - - ! '>='
253
- - !ruby/object:Gem::Version
254
- version: '0'
255
- required_rubygems_version: !ruby/object:Gem::Requirement
258
+ requirements:
259
+ - - ">="
260
+ - !ruby/object:Gem::Version
261
+ version: "0"
262
+ required_rubygems_version: !ruby/object:Gem::Requirement
256
263
  none: false
257
- requirements:
258
- - - ! '>='
259
- - !ruby/object:Gem::Version
260
- version: '0'
264
+ requirements:
265
+ - - ">="
266
+ - !ruby/object:Gem::Version
267
+ version: "0"
261
268
  requirements: []
269
+
262
270
  rubyforge_project:
263
- rubygems_version: 1.8.10
271
+ rubygems_version: 1.6.2
264
272
  signing_key:
265
273
  specification_version: 3
266
274
  summary: Uses fog to access the cloud
267
- test_files:
275
+ test_files:
268
276
  - Rakefile
269
- - spec/dew/cloud_spec.rb
270
- - spec/dew/controllers/amis_controller_spec.rb
277
+ - spec/dew/password_spec.rb
271
278
  - spec/dew/controllers/deploy_controller_spec.rb
272
279
  - spec/dew/controllers/environments_controller_spec.rb
273
- - spec/dew/models/account_spec.rb
280
+ - spec/dew/controllers/amis_controller_spec.rb
281
+ - spec/dew/view_spec.rb
282
+ - spec/dew/spec_helper.rb
283
+ - spec/dew/cloud_spec.rb
274
284
  - spec/dew/models/database_spec.rb
275
- - spec/dew/models/deploy/puge_spec.rb
276
285
  - spec/dew/models/deploy/run_spec.rb
277
- - spec/dew/models/environment_spec.rb
278
- - spec/dew/models/fog_model_spec.rb
286
+ - spec/dew/models/deploy/puge_spec.rb
279
287
  - spec/dew/models/profile_spec.rb
288
+ - spec/dew/models/environment_spec.rb
280
289
  - spec/dew/models/server_spec.rb
281
- - spec/dew/password_spec.rb
282
- - spec/dew/spec_helper.rb
283
- - spec/dew/view_spec.rb
284
- - features/create-ami.feature
290
+ - spec/dew/models/account_spec.rb
291
+ - spec/dew/models/fog_model_spec.rb
285
292
  - features/create-environments.feature
286
293
  - features/deploy-puge.feature
294
+ - features/create-ami.feature
287
295
  - features/step_definitions/aws-steps.rb
288
296
  - features/step_definitions/deploy-puge-steps.rb
289
- - features/support/env.rb
290
297
  - features/support/hooks.rb
298
+ - features/support/env.rb
291
299
  - config/cucumber.yaml