Sha256: a496ed8d25d06b712736bf339b602125ba7a191e2f2364637ea40e6a4506a7c5

Contents?: true

Size: 799 Bytes

Versions: 3

Compression:

Stored size: 799 Bytes

Contents

module RIM

class ModuleInfo
  # remote url (unique identifier of module)
  attr_reader :remote_url
  # remote branch format
  attr_reader :remote_branch_format
  # locale module path
  attr_reader :local_path
  # target revision
  attr_reader :target_revision
  # ignores
  attr_reader :ignores
  
  def initialize(remote_url, local_path, target_revision, ignores = nil, remote_branch_format = nil)
    @remote_url = remote_url
    @remote_branch_format = remote_branch_format
    @local_path = local_path
    @target_revision = target_revision
    if ignores.is_a?(String)
      @ignores = ignores.split(",").each do |s| 
        s.strip! 
      end 
    else
      @ignores = ignores || []
    end
  end
  
  def valid?
    return @remote_url && @local_path && @target_revision
  end
  
end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
esr-rim-1.2.2 lib/rim/module_info.rb
esr-rim-1.2.1 lib/rim/module_info.rb
esr-rim-1.2.0 lib/rim/module_info.rb