Class: RIM::ModuleHelper

Inherits:
Processor show all
Defined in:
lib/rim/module_helper.rb

Constant Summary

Constants inherited from Processor

Processor::GerritServer, Processor::MaxThreads

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Processor

#clone_or_fetch_repository, #commit, #each_module_parallel, #get_absolute_remote_url, #get_relative_path, #local_changes?, #module_git_path, #module_tmp_git_path, #remote_path, shorten_path

Constructor Details

#initialize(workspace_root, module_info, logger) ⇒ ModuleHelper

Returns a new instance of ModuleHelper.



13
14
15
16
17
18
19
# File 'lib/rim/module_helper.rb', line 13

def initialize(workspace_root, module_info, logger)
  super(workspace_root, logger)
  @module_info = module_info
  @remote_url = get_absolute_remote_url(@module_info.remote_url) if @module_info.remote_url
  @remote_path = remote_path(@module_info.remote_url) if @module_info.remote_url
  @logger = logger
end

Instance Attribute Details

#module_infoObject (readonly)

Returns the value of attribute module_info.



11
12
13
# File 'lib/rim/module_helper.rb', line 11

def module_info
  @module_info
end