class RMonitor::Commands::Update
Public Class Methods
new(options = {})
click to toggle source
# File lib/rmonitor/commands/update.rb, line 4 def initialize(options = {}) @invoke = options[:invoke] || Invoke.new(options) @selector = options[:selector] || Selector.new(options) end
Public Instance Methods
execute()
click to toggle source
# File lib/rmonitor/commands/update.rb, line 9 def execute profile = @selector.first_invokable raise NoInvokableProfileError unless profile @invoke.execute(profile[:name]) end