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.



698
699
700
# File 'lib/sfpagent/agent.rb', line 698

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

Instance Method Details

#startObject



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

#stopObject



708
709
710
# File 'lib/sfpagent/agent.rb', line 708

def stop
	@@enabled = false
end