Class: Dotsync::BaseAction

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
PathUtils
Defined in:
lib/dotsync/actions/base_action.rb

Direct Known Subclasses

PullAction, PushAction, WatchAction

Constant Summary

Constants included from PathUtils

PathUtils::ENV_VARS_COLOR

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#loggerObject (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

#executeObject

Raises:

  • (NotImplementedError)


18
19
20
# File 'lib/dotsync/actions/base_action.rb', line 18

def execute
  raise NotImplementedError
end