Class: VagrantGrunt::GruntCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-grunt/command.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/vagrant-grunt/command.rb', line 6

def execute
  @env.ui.info @env.root_path()

  cmd = ""
  ARGV.each do |a|
    cmd << "#{a} "
  end

  @env.ui.info "Executing command #{cmd}"

  with_target_vms(nil, :reverse => true) do |machine|
    @env.ui.info "Running machine detected executing system call"
    machine.action(:action_grunt)
  end


  0
end