Class: Sfp::Agent::Maintenance

Inherits:
Object
  • Object
show all
Defined in:
lib/sfpagent/agent.rb

Constant Summary collapse

IntervalTime =

10 minutes

600

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ Maintenance

Returns a new instance of Maintenance.



654
655
656
# File 'lib/sfpagent/agent.rb', line 654

def initialize(opts={})
	@opts = opts
end

Instance Method Details

#startObject



658
659
660
661
662
# File 'lib/sfpagent/agent.rb', line 658

def start
	return if not defined?(@@enabled) or @@enabled
	@@enabled = true
	# TODO
end

#stopObject



664
665
666
# File 'lib/sfpagent/agent.rb', line 664

def stop
	@@enabled = false
end