Sha256: 5d2d39bdcf3128f4222bdb46d7985c32642b762a73fe4ab25ca557838d6835ee
Contents?: true
Size: 942 Bytes
Versions: 11
Compression:
Stored size: 942 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
11 entries across 11 versions & 1 rubygems