Class: ScoutAgent::Order::SnapshotOrder

Inherits:
ScoutAgent::Order show all
Defined in:
lib/scout_agent/order/snapshot_order.rb

Constant Summary collapse

MATCH_RE =
/\A\s*snap[-_]?shot\s*\z/

Constants inherited from ScoutAgent::Order

ORDERS_DIR

Instance Attribute Summary

Attributes inherited from ScoutAgent::Order

#match_details, #message

Instance Method Summary collapse

Methods inherited from ScoutAgent::Order

can_handle?, inherited, #initialize, load_all, log, #log, log=, master_agent, match?, #notify_master, subclasses

Constructor Details

This class inherits a constructor from ScoutAgent::Order

Instance Method Details

#executeObject



9
10
11
12
13
# File 'lib/scout_agent/order/snapshot_order.rb', line 9

def execute
  log.info("Requesting that a snapshot be taken.")
  API.take_snapshot
  notify_master
end