lib/cloudstack-nagios/base.rb in cloudstack-nagios-0.14.0 vs lib/cloudstack-nagios/base.rb in cloudstack-nagios-0.14.1

- old
+ new

@@ -1,14 +1,14 @@ require "thor" require "yaml" require 'cloudstack_client' -module CloudstackNagios +module CloudstackNagios class Base < Thor include Thor::Actions include CloudstackNagios::Helper - + attr_reader :config # catch control-c and exit trap("SIGINT") { puts " bye" @@ -18,10 +18,10 @@ # exit with return code 1 in case of a error def self.exit_on_failure? true end - no_commands do + no_commands do def client(opts = {}) @config ||= load_configuration @client ||= CloudstackClient::Connection.new( @config[:url], @config[:api_key],