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.15.5 lib/pe_build/on_machine.rb
vagrant-pe_build-0.15.4 lib/pe_build/on_machine.rb
vagrant-pe_build-0.15.3 lib/pe_build/on_machine.rb
vagrant-pe_build-0.15.1 lib/pe_build/on_machine.rb
vagrant-pe_build-0.15.0 lib/pe_build/on_machine.rb
vagrant-pe_build-0.14.2 lib/pe_build/on_machine.rb
vagrant-pe_build-0.14.1 lib/pe_build/on_machine.rb
vagrant-pe_build-0.14.0 lib/pe_build/on_machine.rb
vagrant-pe_build-0.13.7 lib/pe_build/on_machine.rb
vagrant-pe_build-0.13.6 lib/pe_build/on_machine.rb
vagrant-pe_build-0.13.5 lib/pe_build/on_machine.rb
vagrant-pe_build-0.13.4 lib/pe_build/on_machine.rb
vagrant-pe_build-0.13.3 lib/pe_build/on_machine.rb
vagrant-pe_build-0.13.2 lib/pe_build/on_machine.rb
vagrant-pe_build-0.13.1 lib/pe_build/on_machine.rb
vagrant-pe_build-0.13.0 lib/pe_build/on_machine.rb
vagrant-pe_build-0.12.0 lib/pe_build/on_machine.rb
vagrant-pe_build-0.11.0 lib/pe_build/on_machine.rb
vagrant-pe_build-0.10.4 lib/pe_build/on_machine.rb
vagrant-pe_build-0.10.3 lib/pe_build/on_machine.rb