Class: ScoutAgent::Order::SnapshotOrder
- Inherits:
-
ScoutAgent::Order
- Object
- ScoutAgent::Order
- ScoutAgent::Order::SnapshotOrder
- 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
Instance Attribute Summary
Attributes inherited from ScoutAgent::Order
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
#execute ⇒ Object
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 |