Class: RIM::SyncModuleHelper

Inherits:
ModuleHelper show all
Defined in:
lib/rim/sync_module_helper.rb

Constant Summary

Constants inherited from Processor

Processor::GerritServer, Processor::MaxThreads

Instance Attribute Summary

Attributes inherited from ModuleHelper

#module_info

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

Constructor Details

#initialize(dest_root, workspace_root, module_info, logger) ⇒ SyncModuleHelper

Returns a new instance of SyncModuleHelper.



9
10
11
12
# File 'lib/rim/sync_module_helper.rb', line 9

def initialize(dest_root, workspace_root, module_info, logger)
  super(workspace_root, module_info, logger)
  @dest_root = dest_root
end

Instance Method Details

#sync(message = nil) ⇒ Object

do the local sync without committing



15
16
17
18
# File 'lib/rim/sync_module_helper.rb', line 15

def sync(message = nil)
  fetch_module
  export_module(message)
end