Class: Sfp::Agent::Maintenance
- Inherits:
-
Object
- Object
- Sfp::Agent::Maintenance
- Defined in:
- lib/sfpagent/agent.rb
Constant Summary collapse
- IntervalTime =
10 minutes
600
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Maintenance
constructor
A new instance of Maintenance.
- #start ⇒ Object
- #stop ⇒ Object
Constructor Details
#initialize(opts = {}) ⇒ Maintenance
Returns a new instance of Maintenance.
698 699 700 |
# File 'lib/sfpagent/agent.rb', line 698 def initialize(opts={}) @opts = opts end |
Instance Method Details
#start ⇒ Object
702 703 704 705 706 |
# File 'lib/sfpagent/agent.rb', line 702 def start return if not defined?(@@enabled) or @@enabled @@enabled = true # TODO end |
#stop ⇒ Object
708 709 710 |
# File 'lib/sfpagent/agent.rb', line 708 def stop @@enabled = false end |