Sha256: e832ec1ce21c0631662300a967d2c629b67c5f65726e19f34477b39685693b43
Contents?: true
Size: 985 Bytes
Versions: 5
Compression:
Stored size: 985 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 attr_reader :subdir 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 def valid? return @remote_url && @local_path && @target_revision end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
esr-rim-1.4.8 | lib/rim/module_info.rb |
esr-rim-1.4.7 | lib/rim/module_info.rb |
esr-rim-1.4.4 | lib/rim/module_info.rb |
esr-rim-1.4.3 | lib/rim/module_info.rb |
esr-rim-1.4.2 | lib/rim/module_info.rb |