Class: Vagrant::Smartos::Zones::Cap::ZoneGate::Enable

Inherits:
Base
  • Object
show all
Defined in:
lib/vagrant/smartos/zones/cap/zone_gate/enable.rb

Instance Attribute Summary

Attributes inherited from Base

#machine

Instance Method Summary collapse

Methods inherited from Base

cap_method, #initialize, #sudo, #ui

Constructor Details

This class inherits a constructor from Vagrant::Smartos::Zones::Cap::Base

Instance Method Details

#executeObject



11
12
13
14
# File 'lib/vagrant/smartos/zones/cap/zone_gate/enable.rb', line 11

def execute
  ui.info 'Enabling ZoneGate'
  machine.communicate.gz_execute("#{sudo} svcadm enable -s zonegate")
end