Class: Zanzibar::Actions::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/zanzibar/actions/base.rb

Overview

Basic plumbing for all actions

Direct Known Subclasses

Bundle, Get, Init

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options = {})
  self.logger  = logger
  self.options = options
end

Instance Attribute Details

#loggerObject

The logger that Thor is using for this run



12
13
14
# File 'lib/zanzibar/actions/base.rb', line 12

def logger
  @logger
end

#optionsObject

The options passed in from the Thor action



7
8
9
# File 'lib/zanzibar/actions/base.rb', line 7

def options
  @options
end