Class: Dotsync::BaseAction
- Inherits:
-
Object
- Object
- Dotsync::BaseAction
- Extended by:
- Forwardable
- Includes:
- PathUtils
- Defined in:
- lib/dotsync/actions/base_action.rb
Direct Known Subclasses
Constant Summary
Constants included from PathUtils
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(config, logger) ⇒ BaseAction
constructor
A new instance of BaseAction.
Methods included from PathUtils
#colorize_env_vars, #expand_env_vars, #extract_env_vars, #path_is_parent_or_same?, #relative_to_absolute, #sanitize_path, #translate_tmp_path
Constructor Details
#initialize(config, logger) ⇒ BaseAction
Returns a new instance of BaseAction.
13 14 15 16 |
# File 'lib/dotsync/actions/base_action.rb', line 13 def initialize(config, logger) @config = config @logger = logger end |
Instance Attribute Details
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
9 10 11 |
# File 'lib/dotsync/actions/base_action.rb', line 9 def logger @logger end |
Instance Method Details
#execute ⇒ Object
18 19 20 |
# File 'lib/dotsync/actions/base_action.rb', line 18 def execute raise NotImplementedError end |