Sha256: 6222115fc53d1c5008b0b25f3b666c5910d2084ca181c109689777fc119489f0

Contents?: true

Size: 410 Bytes

Versions: 2

Compression:

Stored size: 410 Bytes

Contents

require 'cloud66_agent/utils/vital_signs'
require 'cloud66_agent/utils/server'

module Cloud66
	module Commands
		class Address
			def self.perform
				begin
					data = Utils::VitalSigns.address_info
				rescue => exc
					data = { error: exc.message }
				end
				Utils::Server.send_address data
				exit 0
			rescue => exc
				$logger.error "Address Failed: #{exc.message}"
				exit -1
			end
		end
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cloud66_agent-0.0.1.pre3 lib/cloud66_agent/commands/address.rb
cloud66_agent-0.0.1.pre2 lib/cloud66_agent/commands/address.rb