Sha256: 7c51c325924760435e1bb6d31b0c285cbada06101b8e6d49e75397847c1d3eb3

Contents?: true

Size: 418 Bytes

Versions: 42

Compression:

Stored size: 418 Bytes

Contents

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

module Cloud66
	module Commands
		class Vitals
			def self.perform
				begin
					data = Utils::VitalSigns.vitals_info
				rescue => exc
					data = { error: exc.message }
				end
				Utils::Server.send_vitals data
				exit 0
			rescue => exc
				$logger.error "Command \"vitals\" failed: #{exc.message}"
				exit -1
			end
		end
	end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
cloud66_agent-1.3.1 lib/cloud66_agent/commands/vitals.rb
cloud66_agent-1.3.0 lib/cloud66_agent/commands/vitals.rb
cloud66_agent-1.2.8 lib/cloud66_agent/commands/vitals.rb
cloud66_agent-1.2.7 lib/cloud66_agent/commands/vitals.rb
cloud66_agent-1.2.6 lib/cloud66_agent/commands/vitals.rb
cloud66_agent-1.2.5 lib/cloud66_agent/commands/vitals.rb
cloud66_agent-1.2.5.beta2 lib/cloud66_agent/commands/vitals.rb
cloud66_agent-1.2.5.beta1 lib/cloud66_agent/commands/vitals.rb
cloud66_agent-1.2.4 lib/cloud66_agent/commands/vitals.rb
cloud66_agent-1.2.4.beta1 lib/cloud66_agent/commands/vitals.rb
cloud66_agent-1.2.3 lib/cloud66_agent/commands/vitals.rb
cloud66_agent-1.2.2 lib/cloud66_agent/commands/vitals.rb
cloud66_agent-1.2.1 lib/cloud66_agent/commands/vitals.rb
cloud66_agent-1.2.1.beta1 lib/cloud66_agent/commands/vitals.rb
cloud66_agent-1.2.0 lib/cloud66_agent/commands/vitals.rb
cloud66_agent-1.1.2 lib/cloud66_agent/commands/vitals.rb
cloud66_agent-1.1.2.beta2 lib/cloud66_agent/commands/vitals.rb
cloud66_agent-1.1.2.beta1 lib/cloud66_agent/commands/vitals.rb
cloud66_agent-1.1.1 lib/cloud66_agent/commands/vitals.rb
cloud66_agent-1.1.1.beta1 lib/cloud66_agent/commands/vitals.rb