Module: Vagrant::Butcher::Action

Defined in:
lib/vagrant-butcher/action.rb,
lib/vagrant-butcher/action/cleanup.rb,
lib/vagrant-butcher/action/copy_guest_key.rb

Defined Under Namespace

Classes: Cleanup, CopyGuestKey

Class Method Summary collapse

Class Method Details

.cleanupObject



7
8
9
10
11
12
# File 'lib/vagrant-butcher/action.rb', line 7

def self.cleanup
  ::Vagrant::Action::Builder.new.tap do |b|
    b.use setup
    b.use Vagrant::Butcher::Action::Cleanup
  end
end

.copy_guest_keyObject



14
15
16
17
18
19
# File 'lib/vagrant-butcher/action.rb', line 14

def self.copy_guest_key
  ::Vagrant::Action::Builder.new.tap do |b|
    b.use setup
    b.use Vagrant::Butcher::Action::CopyGuestKey
  end
end

.setupObject



21
22
23
24
25
# File 'lib/vagrant-butcher/action.rb', line 21

def self.setup
  @setup ||= ::Vagrant::Action::Builder.new.tap do |b|
    b.use ::Vagrant::Action::Builtin::EnvSet, butcher: Vagrant::Butcher::Env.new
  end
end