Class: CloudstackNagios::Base

Inherits:
Thor
  • Object
show all
Includes:
Helper, Thor::Actions
Defined in:
lib/cloudstack-nagios/base.rb

Constant Summary

Constants included from Helper

Helper::RETURN_CODES

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Helper

#check_data, #cs_routers, #cs_system_vms, #exit_with_failure, #load_template, #storage_pools

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



10
11
12
# File 'lib/cloudstack-nagios/base.rb', line 10

def config
  @config
end

Class Method Details

.exit_on_failure?Boolean

exit with return code 1 in case of a error

Returns:

  • (Boolean)


19
20
21
# File 'lib/cloudstack-nagios/base.rb', line 19

def self.exit_on_failure?
  true
end