# File lib/sensu-plugin/cli.rb, line 46 def method_added(name) if name == :run @@autorun = self end end
# File lib/sensu-plugin/cli.rb, line 11 def initialize(argv=ARGV) super() self.argv = self.parse_options(argv) end
Implementing classes should override this to produce appropriate output for their handler.
# File lib/sensu-plugin/cli.rb, line 19 def output(*args) puts "Sensu::Plugin::CLI: #{args}" end
Implementing classes must override this.
# File lib/sensu-plugin/cli.rb, line 36 def run unknown "Not implemented! You should override Sensu::Plugin::CLI#run." end