Class: R10K::Task::Module::Sync

Inherits:
Base
  • Object
show all
Defined in:
lib/r10k/task/module.rb

Constant Summary

Constants included from Logging

Logging::LOG_LEVELS

Instance Attribute Summary

Attributes inherited from Base

#task_runner

Instance Method Summary collapse

Methods included from Logging

formatter, included, level, level=, levels, #logger, #logger_name, outputter, parse_level

Constructor Details

#initialize(mod) ⇒ Sync

Returns a new instance of Sync.



7
8
9
# File 'lib/r10k/task/module.rb', line 7

def initialize(mod)
  @mod = mod
end

Instance Method Details

#callObject



11
12
13
14
# File 'lib/r10k/task/module.rb', line 11

def call
  logger.info "Deploying #{@mod.name} into #{@mod.basedir}"
  @mod.sync
end