Class: Flydata::Helper::BaseAction
- Inherits:
-
Object
- Object
- Flydata::Helper::BaseAction
- Includes:
- FlydataCore::Logger
- Defined in:
- lib/flydata/helper/base_action.rb
Direct Known Subclasses
Action::AgentAction, Action::CheckAbnormalShutdown, Action::CheckRemoteActions, Action::SendLogs, Action::StopHelper, Action::UpdateHelperConfig
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
Instance Method Summary collapse
-
#config_hash(opts) ⇒ Object
Override def execute(opts = {}, &block) end.
-
#initialize(config) ⇒ BaseAction
constructor
A new instance of BaseAction.
Constructor Details
#initialize(config) ⇒ BaseAction
Returns a new instance of BaseAction.
8 9 10 |
# File 'lib/flydata/helper/base_action.rb', line 8 def initialize(config) @config = config end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
12 13 14 |
# File 'lib/flydata/helper/base_action.rb', line 12 def config @config end |
Instance Method Details
#config_hash(opts) ⇒ Object
Override def execute(opts = {}, &block) end
18 19 20 |
# File 'lib/flydata/helper/base_action.rb', line 18 def config_hash(opts) opts[:config_hash] || {} end |