Module: VagrantPlugins::ChefZero::Action

Includes:
Vagrant::Action::Builtin
Defined in:
lib/vagrant-chef-zero/action.rb,
lib/vagrant-chef-zero/action/stop.rb,
lib/vagrant-chef-zero/action/start.rb,
lib/vagrant-chef-zero/action/upload.rb,
lib/vagrant-chef-zero/action/reconfig.rb

Defined Under Namespace

Classes: Reconfig, Start, Stop, Upload

Class Method Summary collapse

Class Method Details

.chef_zero_destroyObject



23
24
25
26
27
# File 'lib/vagrant-chef-zero/action.rb', line 23

def self.chef_zero_destroy
  Vagrant::Action::Builder.new.tap do |b|
    b.use VagrantPlugins::ChefZero::Action::Stop
  end
end

.chef_zero_provisionObject



16
17
18
19
20
21
# File 'lib/vagrant-chef-zero/action.rb', line 16

def self.chef_zero_provision
  Vagrant::Action::Builder.new.tap do |b|
    b.use VagrantPlugins::ChefZero::Action::Start
    b.use VagrantPlugins::ChefZero::Action::Upload
  end
end

.chef_zero_reconfigObject



29
30
31
32
33
# File 'lib/vagrant-chef-zero/action.rb', line 29

def self.chef_zero_reconfig
  Vagrant::Action::Builder.new.tap do |b|
    b.use VagrantPlugins::ChefZero::Action::Reconfig
  end
end

.chef_zero_ui_setupObject



35
36
37
38
39
# File 'lib/vagrant-chef-zero/action.rb', line 35

def self.chef_zero_ui_setup
  Vagrant::Action::Builder.new.tap do |b|
    b.use ::Vagrant::Action::Builtin::EnvSet, chef_zero: VagrantPlugins::ChefZero::Env.new
  end
end