Class: RMonitor::Commands::CL::Invoke
- Inherits:
-
Object
- Object
- RMonitor::Commands::CL::Invoke
- Defined in:
- lib/rmonitor/commands/cl/invoke.rb
Instance Method Summary collapse
- #execute(name) ⇒ Object
-
#initialize(options = {}) ⇒ Invoke
constructor
A new instance of Invoke.
Constructor Details
Instance Method Details
#execute(name) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/rmonitor/commands/cl/invoke.rb', line 12 def execute(name) @invoke.execute(name) rescue RMonitor::UnknownProfileError @err.puts "unknown profile" rescue RMonitor::UninvokableProfileError @err.puts "profile is not invokable" end |