manifests-vmc-plugin 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,8 @@ VMC.Plugin(VMC::App) do
14
14
 
15
15
  # basic commands that, when given no args, act on the
16
16
  # app(s) described by the manifest, in dependency-order
17
- [:start, :instances, :logs].each do |wrap|
17
+ [:start, :instances, :scale, :logs,
18
+ :file, :files, :health, :stats].each do |wrap|
18
19
  around(wrap) do |cmd, args|
19
20
  if args.empty? && !passed_value(:name)
20
21
  each_app do |a|
@@ -141,6 +142,10 @@ VMC.Plugin(VMC::App) do
141
142
  "url" => passed_value(:url)
142
143
  }
143
144
 
145
+ if cmd = passed_value(:command)
146
+ meta["command"] = cmd
147
+ end
148
+
144
149
  unless manifest_file || meta.any? { |k, v| v.nil? }
145
150
  puts ""
146
151
 
@@ -1,3 +1,3 @@
1
1
  module VMCManifests
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -329,7 +329,7 @@ module VMCManifests
329
329
  diff[k] = [old, v]
330
330
  app.env = v
331
331
  end
332
- when "framework", "runtime"
332
+ when "framework", "runtime", "command"
333
333
  old = app.send(k)
334
334
  if old != v
335
335
  diff[k] = [old, v]
@@ -355,10 +355,10 @@ module VMCManifests
355
355
  return if diff.empty?
356
356
 
357
357
  unless simple_output?
358
- puts "Detected the following changes to #{c(app.name, :blue)}:"
358
+ puts "Detected the following changes to #{c(app.name, :name)}:"
359
359
  diff.each do |k, d|
360
360
  old, new = d
361
- label = c(k, need_restage.include?(k) ? :red : :green)
361
+ label = c(k, need_restage.include?(k) ? :bad : :good)
362
362
  puts " #{label}: #{old.inspect} #{c("->", :dim)} #{new.inspect}"
363
363
  end
364
364
 
@@ -366,24 +366,24 @@ module VMCManifests
366
366
  end
367
367
 
368
368
  if need_restage.empty?
369
- with_progress("Updating #{c(app.name, :blue)}") do
369
+ with_progress("Updating #{c(app.name, :name)}") do
370
370
  app.update!
371
371
  end
372
372
  else
373
373
  unless simple_output?
374
374
  puts "The following changes require the app to be recreated:"
375
375
  need_restage.each do |n|
376
- puts " #{c(n, :magenta)}"
376
+ puts " #{c(n, :error)}"
377
377
  end
378
378
  puts ""
379
379
  end
380
380
 
381
381
  if force? || ask("Redeploy?", :default => false)
382
- with_progress("Deleting #{c(app.name, :blue)}") do
382
+ with_progress("Deleting #{c(app.name, :name)}") do
383
383
  app.delete!
384
384
  end
385
385
 
386
- with_progress("Recreating #{c(app.name, :blue)}") do
386
+ with_progress("Recreating #{c(app.name, :name)}") do
387
387
  app.create!
388
388
  end
389
389
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manifests-vmc-plugin
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Suraci
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-06-08 00:00:00 Z
18
+ date: 2012-06-14 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: