Moar annotations

This commit is contained in:
Fabio Rehm 2013-09-28 01:33:47 -03:00
parent cd53ad2efd
commit bcfb7b3e00
2 changed files with 3 additions and 3 deletions

View file

@ -94,7 +94,6 @@ module Vagrant
b.use Builtin::Call, IsRunning do |env, b2| b.use Builtin::Call, IsRunning do |env, b2|
# If the VM is running, then our work here is done, exit # If the VM is running, then our work here is done, exit
next if env[:result] next if env[:result]
# TODO: Check if has been saved / frozen and resume
b2.use action_boot b2.use action_boot
end end
end end
@ -123,7 +122,7 @@ module Vagrant
Builder.new.tap do |b| Builder.new.tap do |b|
b.use Builtin::Call, Created do |env, b2| b.use Builtin::Call, Created do |env, b2|
if env[:result] if env[:result]
# TODO: Check vagrant version and use only if lower than 1.X # TODO: Remove once we drop support for vagrant 1.1
b2.use Disconnect b2.use Disconnect
b2.use ClearForwardedPorts b2.use ClearForwardedPorts
b2.use RemoveTemporaryFiles b2.use RemoveTemporaryFiles
@ -149,7 +148,7 @@ module Vagrant
next next
end end
# TODO: Use Vagrant's built in action # TODO: Use Vagrant's built in action once we drop support for vagrant 1.2
b2.use Builtin::Call, DestroyConfirm do |env2, b3| b2.use Builtin::Call, DestroyConfirm do |env2, b3|
if env2[:result] if env2[:result]
b3.use Builtin::ConfigValidate b3.use Builtin::ConfigValidate

View file

@ -1,6 +1,7 @@
module Vagrant module Vagrant
module LXC module LXC
module Action module Action
# XXX: Is this really needed? Should we contribute this back to Vagrant's core?
class Message class Message
def initialize(app, env, msg_key, type = :info) def initialize(app, env, msg_key, type = :info)
@app = app @app = app