Method: RIM::ModuleInfo#initialize

Defined in:
lib/rim/module_info.rb

#initialize(remote_url, local_path, target_revision, ignores = nil, remote_branch_format = nil, subdir = nil) ⇒ ModuleInfo

Returns a new instance of ModuleInfo.



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/rim/module_info.rb', line 17

def initialize(remote_url,
               local_path,
               target_revision,
               ignores = nil,
               remote_branch_format = nil,
               subdir = nil)
  @remote_url = remote_url
  @remote_branch_format = remote_branch_format
  @local_path = local_path
  @target_revision = target_revision
  @subdir = subdir
  if ignores.is_a?(String)
    @ignores = ignores.split(",").each do |s| 
      s.strip! 
    end 
  else
    @ignores = ignores || []
  end
end