Class: Vagrant::LXC::Action::Created

Inherits:
BaseAction show all
Defined in:
lib/vagrant-lxc/action/created.rb

Instance Method Summary collapse

Methods inherited from BaseAction

#initialize

Constructor Details

This class inherits a constructor from Vagrant::LXC::Action::BaseAction

Instance Method Details

#call(env) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/vagrant-lxc/action/created.rb', line 5

def call(env)
  # Set the result to be true if the machine is created.
  env[:result] = env[:machine].state.created?

  # Call the next if we have one (but we shouldn't, since this
  # middleware is built to run with the Call-type middlewares)
  @app.call(env)
end