Class: Albacore::Tools::RestoreHintPaths::Task

Inherits:
Object
  • Object
show all
Includes:
Logging
Defined in:
lib/albacore/tools/restore_hint_paths.rb

Instance Method Summary collapse

Methods included from Logging

#debug, #err, #error, #fatal, #info, #puts, #trace, #warn

Constructor Details

#initialize(config) ⇒ Task

Returns a new instance of Task.



33
34
35
# File 'lib/albacore/tools/restore_hint_paths.rb', line 33

def initialize config
  @config = config
end

Instance Method Details

#executeObject



36
37
38
39
40
41
42
43
44
# File 'lib/albacore/tools/restore_hint_paths.rb', line 36

def execute
  ps = map_file_list(@config.projs) || find_projs_in_need(@config.lang)
  ps.each do |proj|
    info "fixing #{proj}"
    fix_refs proj, @config.asmname_to_package
    info "saving #{proj}"
    proj.save unless @config.dry_run
  end
end