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.7.1 lib/pe_build/on_machine.rb
vagrant-pe_build-0.7.0 lib/pe_build/on_machine.rb
vagrant-pe_build-0.6.0 lib/pe_build/on_machine.rb
vagrant-pe_build-0.5.0 lib/pe_build/on_machine.rb
vagrant-pe_build-0.4.3 lib/pe_build/on_machine.rb
vagrant-pe_build-0.4.2 lib/pe_build/on_machine.rb
vagrant-pe_build-0.4.1 lib/pe_build/on_machine.rb
vagrant-pe_build-0.4.0 lib/pe_build/on_machine.rb
vagrant-pe_build-0.3.0 lib/pe_build/on_machine.rb