vmc 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,6 +17,8 @@ module VMC::App
17
17
  app.crashes
18
18
  end
19
19
 
20
+ line unless quiet?
21
+
20
22
  spaced(instances) do |i|
21
23
  if quiet?
22
24
  line i.id
@@ -46,9 +46,8 @@ module VMC::App
46
46
 
47
47
  fail "No crashed instances found." if crashes.empty?
48
48
 
49
- spaced(crashes) do |i|
50
- show_instance_logs(app, i)
51
- end
49
+ most_recent = crashes.sort_by(&:since).last
50
+ show_instance_logs(app, most_recent)
52
51
  end
53
52
 
54
53
  def show_instance_logs(app, i)
data/lib/vmc/cli/user.rb CHANGED
@@ -83,7 +83,7 @@ module VMC
83
83
  }
84
84
  def passwd
85
85
  user = input[:user]
86
- password = input[:password]
86
+ password = input[:password] if v2?
87
87
  new_password = input[:new_password]
88
88
  verify = input[:verify]
89
89
 
@@ -92,7 +92,12 @@ module VMC
92
92
  end
93
93
 
94
94
  with_progress("Changing password") do
95
- user.change_password!(new_password, password)
95
+ if v2?
96
+ user.change_password!(new_password, password)
97
+ else
98
+ user.password = new_password
99
+ user.update!
100
+ end
96
101
  end
97
102
  end
98
103
 
data/lib/vmc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module VMC
2
- VERSION = "0.4.0".freeze
2
+ VERSION = "0.4.1".freeze
3
3
  end
@@ -0,0 +1,17 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ rack (1.4.1)
5
+ rack-protection (1.2.0)
6
+ rack
7
+ sinatra (1.3.2)
8
+ rack (~> 1.3, >= 1.3.6)
9
+ rack-protection (~> 1.2)
10
+ tilt (~> 1.3, >= 1.3.3)
11
+ tilt (1.3.3)
12
+
13
+ PLATFORMS
14
+ ruby
15
+
16
+ DEPENDENCIES
17
+ sinatra
File without changes
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vmc
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 0
10
- version: 0.4.0
9
+ - 1
10
+ version: 0.4.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Suraci
@@ -15,7 +15,8 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-11-29 00:00:00 Z
18
+ date: 2012-11-30 00:00:00 -08:00
19
+ default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: json_pure
@@ -57,12 +58,12 @@ dependencies:
57
58
  requirements:
58
59
  - - ~>
59
60
  - !ruby/object:Gem::Version
60
- hash: 15
61
+ hash: 13
61
62
  segments:
62
63
  - 0
63
64
  - 4
64
- - 0
65
- version: 0.4.0
65
+ - 1
66
+ version: 0.4.1
66
67
  type: :runtime
67
68
  version_requirements: *id003
68
69
  - !ruby/object:Gem::Dependency
@@ -254,64 +255,66 @@ extra_rdoc_files: []
254
255
  files:
255
256
  - LICENSE
256
257
  - Rakefile
257
- - lib/vmc/cli/app/app.rb
258
- - lib/vmc/cli/app/apps.rb
259
- - lib/vmc/cli/app/base.rb
260
- - lib/vmc/cli/app/crashes.rb
261
- - lib/vmc/cli/app/delete.rb
262
- - lib/vmc/cli/app/deprecated.rb
263
- - lib/vmc/cli/app/env.rb
264
- - lib/vmc/cli/app/files.rb
258
+ - lib/vmc/version.rb
259
+ - lib/vmc/detect.rb
260
+ - lib/vmc/errors.rb
261
+ - lib/vmc/spacing.rb
262
+ - lib/vmc/spec_helper.rb
263
+ - lib/vmc/plugin.rb
264
+ - lib/vmc/constants.rb
265
+ - lib/vmc/cli.rb
266
+ - lib/vmc/cli/service.rb
267
+ - lib/vmc/cli/user.rb
268
+ - lib/vmc/cli/route/create_route.rb
269
+ - lib/vmc/cli/route/routes.rb
270
+ - lib/vmc/cli/route/base.rb
271
+ - lib/vmc/cli/route/delete_route.rb
272
+ - lib/vmc/cli/app/scale.rb
265
273
  - lib/vmc/cli/app/health.rb
266
- - lib/vmc/cli/app/instances.rb
267
- - lib/vmc/cli/app/logs.rb
268
- - lib/vmc/cli/app/push.rb
274
+ - lib/vmc/cli/app/files.rb
269
275
  - lib/vmc/cli/app/rename.rb
270
- - lib/vmc/cli/app/restart.rb
271
276
  - lib/vmc/cli/app/routes.rb
272
- - lib/vmc/cli/app/scale.rb
277
+ - lib/vmc/cli/app/deprecated.rb
278
+ - lib/vmc/cli/app/logs.rb
279
+ - lib/vmc/cli/app/instances.rb
273
280
  - lib/vmc/cli/app/start.rb
274
- - lib/vmc/cli/app/stats.rb
281
+ - lib/vmc/cli/app/app.rb
275
282
  - lib/vmc/cli/app/stop.rb
276
- - lib/vmc/cli/domain/add_domain.rb
277
- - lib/vmc/cli/domain/base.rb
283
+ - lib/vmc/cli/app/env.rb
284
+ - lib/vmc/cli/app/base.rb
285
+ - lib/vmc/cli/app/stats.rb
286
+ - lib/vmc/cli/app/apps.rb
287
+ - lib/vmc/cli/app/restart.rb
288
+ - lib/vmc/cli/app/delete.rb
289
+ - lib/vmc/cli/app/push.rb
290
+ - lib/vmc/cli/app/crashes.rb
291
+ - lib/vmc/cli/interactive.rb
278
292
  - lib/vmc/cli/domain/create_domain.rb
279
- - lib/vmc/cli/domain/delete_domain.rb
280
293
  - lib/vmc/cli/domain/domains.rb
294
+ - lib/vmc/cli/domain/delete_domain.rb
295
+ - lib/vmc/cli/domain/base.rb
281
296
  - lib/vmc/cli/domain/remove_domain.rb
282
- - lib/vmc/cli/help.rb
283
- - lib/vmc/cli/interactive.rb
284
- - lib/vmc/cli/organization.rb
285
- - lib/vmc/cli/route/base.rb
286
- - lib/vmc/cli/route/create_route.rb
287
- - lib/vmc/cli/route/delete_route.rb
288
- - lib/vmc/cli/route/routes.rb
289
- - lib/vmc/cli/service.rb
297
+ - lib/vmc/cli/domain/add_domain.rb
290
298
  - lib/vmc/cli/space.rb
291
299
  - lib/vmc/cli/start.rb
292
- - lib/vmc/cli/user.rb
293
- - lib/vmc/cli.rb
294
- - lib/vmc/constants.rb
295
- - lib/vmc/detect.rb
296
- - lib/vmc/errors.rb
297
- - lib/vmc/plugin.rb
298
- - lib/vmc/spacing.rb
299
- - lib/vmc/spec_helper.rb
300
- - lib/vmc/version.rb
300
+ - lib/vmc/cli/help.rb
301
+ - lib/vmc/cli/organization.rb
301
302
  - lib/vmc.rb
302
- - spec/cli/app/push_spec.rb
303
- - spec/cli/app/rename_spec.rb
304
- - spec/cli/route/delete_route_spec.rb
305
- - spec/detect_spec.rb
306
- - spec/factories/app_factory.rb
307
- - spec/factories/client_factory.rb
308
- - spec/factories/domain_factory.rb
303
+ - spec/support/interact_helpers.rb
304
+ - spec/factories/route_factory.rb
309
305
  - spec/factories/factory.rb
310
306
  - spec/factories/framework_factory.rb
311
- - spec/factories/route_factory.rb
307
+ - spec/factories/domain_factory.rb
308
+ - spec/factories/client_factory.rb
309
+ - spec/factories/app_factory.rb
312
310
  - spec/spec_helper.rb
313
- - spec/support/interact_helpers.rb
311
+ - spec/vmc/detect_spec.rb
312
+ - spec/vmc/cli/route/delete_route_spec.rb
313
+ - spec/vmc/cli/app/push_spec.rb
314
+ - spec/vmc/cli/app/rename_spec.rb
315
+ - spec/assets/hello-sinatra/Gemfile.lock
314
316
  - bin/vmc
317
+ has_rdoc: true
315
318
  homepage: http://cloudfoundry.com/
316
319
  licenses: []
317
320
 
@@ -341,20 +344,21 @@ required_rubygems_version: !ruby/object:Gem::Requirement
341
344
  requirements: []
342
345
 
343
346
  rubyforge_project: vmc
344
- rubygems_version: 1.8.24
347
+ rubygems_version: 1.6.2
345
348
  signing_key:
346
349
  specification_version: 3
347
350
  summary: Friendly command-line interface for Cloud Foundry.
348
351
  test_files:
349
- - spec/cli/app/push_spec.rb
350
- - spec/cli/app/rename_spec.rb
351
- - spec/cli/route/delete_route_spec.rb
352
- - spec/detect_spec.rb
353
- - spec/factories/app_factory.rb
354
- - spec/factories/client_factory.rb
355
- - spec/factories/domain_factory.rb
352
+ - spec/support/interact_helpers.rb
353
+ - spec/factories/route_factory.rb
356
354
  - spec/factories/factory.rb
357
355
  - spec/factories/framework_factory.rb
358
- - spec/factories/route_factory.rb
356
+ - spec/factories/domain_factory.rb
357
+ - spec/factories/client_factory.rb
358
+ - spec/factories/app_factory.rb
359
359
  - spec/spec_helper.rb
360
- - spec/support/interact_helpers.rb
360
+ - spec/vmc/detect_spec.rb
361
+ - spec/vmc/cli/route/delete_route_spec.rb
362
+ - spec/vmc/cli/app/push_spec.rb
363
+ - spec/vmc/cli/app/rename_spec.rb
364
+ - spec/assets/hello-sinatra/Gemfile.lock