Class: Cloud66::Commands::SendMessage

Inherits:
Object
  • Object
show all
Defined in:
lib/cloud66_agent/commands/send_message.rb

Class Method Summary collapse

Class Method Details

.perform(key, options) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/cloud66_agent/commands/send_message.rb', line 6

def self.perform(key,options)
	data = {
			key: key,
			options: options
	}
	Utils::Server.send_message(data)
	exit 0
rescue => exc
	$logger.error "Command \"send_message\" failed: #{exc.message}"
	exit -1
end