Class: Cloud66::Commands::Address
- Inherits:
-
Object
- Object
- Cloud66::Commands::Address
- Defined in:
- lib/cloud66_agent/commands/address.rb
Class Method Summary collapse
Class Method Details
.perform ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/cloud66_agent/commands/address.rb', line 7 def self.perform begin data = Utils::VitalSigns.address_info rescue => exc data = { error: exc. } end Utils::Server.send_address data exit 0 rescue => exc $logger.error "Command \"address\" failed: #{exc.}" exit -1 end |