Class: RIM::ModuleInfo
- Inherits:
-
Object
- Object
- RIM::ModuleInfo
- Defined in:
- lib/rim/module_info.rb
Instance Attribute Summary collapse
-
#ignores ⇒ Object
readonly
ignores.
-
#local_path ⇒ Object
readonly
locale module path.
-
#remote_branch_format ⇒ Object
readonly
remote branch format.
-
#remote_url ⇒ Object
readonly
remote url (unique identifier of module).
-
#target_revision ⇒ Object
readonly
target revision.
Instance Method Summary collapse
-
#initialize(remote_url, local_path, target_revision, ignores = nil, remote_branch_format = nil) ⇒ ModuleInfo
constructor
A new instance of ModuleInfo.
- #valid? ⇒ Boolean
Constructor Details
#initialize(remote_url, local_path, target_revision, ignores = nil, remote_branch_format = nil) ⇒ ModuleInfo
Returns a new instance of ModuleInfo.
15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/rim/module_info.rb', line 15 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 |
Instance Attribute Details
#ignores ⇒ Object (readonly)
ignores
13 14 15 |
# File 'lib/rim/module_info.rb', line 13 def ignores @ignores end |
#local_path ⇒ Object (readonly)
locale module path
9 10 11 |
# File 'lib/rim/module_info.rb', line 9 def local_path @local_path end |
#remote_branch_format ⇒ Object (readonly)
remote branch format
7 8 9 |
# File 'lib/rim/module_info.rb', line 7 def remote_branch_format @remote_branch_format end |
#remote_url ⇒ Object (readonly)
remote url (unique identifier of module)
5 6 7 |
# File 'lib/rim/module_info.rb', line 5 def remote_url @remote_url end |
#target_revision ⇒ Object (readonly)
target revision
11 12 13 |
# File 'lib/rim/module_info.rb', line 11 def target_revision @target_revision end |
Instance Method Details
#valid? ⇒ Boolean
29 30 31 |
# File 'lib/rim/module_info.rb', line 29 def valid? return @remote_url && @local_path && @target_revision end |