Module: Vagrant::Smartos::Zones::Util::GlobalZone::ClassHelpers

Defined in:
lib/vagrant/smartos/zones/util/global_zone/helper.rb

Instance Method Summary collapse

Instance Method Details

#with_gz(machine, command, options = {}) ⇒ Object



23
24
25
26
27
# File 'lib/vagrant/smartos/zones/util/global_zone/helper.rb', line 23

def with_gz(machine, command, options = {})
  machine.communicate.gz_execute(command, options) do |_type, output|
    yield output if block_given?
  end
end