Class: Wocker::Cli::BuildCommand

Inherits:
Clamp::Command
  • Object
show all
Defined in:
lib/wocker/cli/build_command.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



9
10
11
12
13
14
15
# File 'lib/wocker/cli/build_command.rb', line 9

def execute
  v = Wocker::Vagrantfile.new interface: interface, choco: choco?
  v.create_from_wockerfile!

  Wocker::Vagrant.run "destroy", "-f"
  Wocker::Vagrant.run "up"
end