Class: Zanzibar::Actions::Base
- Inherits:
-
Object
- Object
- Zanzibar::Actions::Base
- Defined in:
- lib/zanzibar/actions/base.rb
Overview
Basic plumbing for all actions
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
The logger that Thor is using for this run.
-
#options ⇒ Object
readonly
The options passed in from the Thor action.
Instance Method Summary collapse
-
#initialize(logger, options = {}) ⇒ Base
constructor
Initialize the basic components used by all actions.
Constructor Details
#initialize(logger, options = {}) ⇒ Base
Initialize the basic components used by all actions
17 18 19 20 |
# File 'lib/zanzibar/actions/base.rb', line 17 def initialize(logger, = {}) self.logger = logger self. = end |
Instance Attribute Details
#logger ⇒ Object
The logger that Thor is using for this run
12 13 14 |
# File 'lib/zanzibar/actions/base.rb', line 12 def logger @logger end |
#options ⇒ Object
The options passed in from the Thor action
7 8 9 |
# File 'lib/zanzibar/actions/base.rb', line 7 def end |