Class: RMonitor::Commands::CL::Update
- Inherits:
-
Object
- Object
- RMonitor::Commands::CL::Update
- Defined in:
- lib/rmonitor/commands/cl/update.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(options = {}) ⇒ Update
constructor
A new instance of Update.
Constructor Details
#initialize(options = {}) ⇒ Update
Returns a new instance of Update.
7 8 9 10 |
# File 'lib/rmonitor/commands/cl/update.rb', line 7 def initialize( = {}) @err = [:err] || $stderr @update = [:update] || RMonitor::Commands::Update.new() end |
Instance Method Details
#execute ⇒ Object
12 13 14 15 16 |
# File 'lib/rmonitor/commands/cl/update.rb', line 12 def execute @update.execute rescue RMonitor::NoInvokableProfileError @err.puts "no invokable profile" end |