Sha256: f8cb06d52609b3896379ce7490fdce6e48762899f5a29ede0aff1230858e2eff

Contents?: true

Size: 267 Bytes

Versions: 49

Compression:

Stored size: 267 Bytes

Contents

module PEBuild
  module OnMachine
    def on_machine(machine, cmd)
      machine.communicate.sudo(cmd) do |type, data|
        color = (type == :stdout) ? :green : :red
        machine.ui.info(data.chomp, :color => color, :prefix => true)
      end
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
vagrant-pe_build-0.10.2 lib/pe_build/on_machine.rb
vagrant-pe_build-0.10.1 lib/pe_build/on_machine.rb
vagrant-pe_build-0.10.0 lib/pe_build/on_machine.rb
vagrant-pe_build-0.9.7 lib/pe_build/on_machine.rb
vagrant-pe_build-0.9.6 lib/pe_build/on_machine.rb
vagrant-pe_build-0.9.5 lib/pe_build/on_machine.rb
vagrant-pe_build-0.9.4 lib/pe_build/on_machine.rb
vagrant-pe_build-0.9.3 lib/pe_build/on_machine.rb
vagrant-pe_build-0.9.2 lib/pe_build/on_machine.rb
vagrant-pe_build-0.9.1 lib/pe_build/on_machine.rb
vagrant-pe_build-0.9.0 lib/pe_build/on_machine.rb
vagrant-pe_build-0.8.8 lib/pe_build/on_machine.rb
vagrant-pe_build-0.8.7 lib/pe_build/on_machine.rb
vagrant-pe_build-0.8.6 lib/pe_build/on_machine.rb
vagrant-pe_build-0.8.5 lib/pe_build/on_machine.rb
vagrant-pe_build-0.8.4 lib/pe_build/on_machine.rb
vagrant-pe_build-0.8.3 lib/pe_build/on_machine.rb
vagrant-pe_build-0.8.2 lib/pe_build/on_machine.rb
vagrant-pe_build-0.8.1 lib/pe_build/on_machine.rb
vagrant-pe_build-0.8.0 lib/pe_build/on_machine.rb