Class: VRundler::Bundle
- Inherits:
-
Object
- Object
- VRundler::Bundle
- Includes:
- BasicBundle
- Defined in:
- lib/vrundler/bundle.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#owner ⇒ Object
readonly
Returns the value of attribute owner.
Attributes included from BasicBundle
Instance Method Summary collapse
- #bundle_specific_unpack ⇒ Object
-
#initialize(name, owner) ⇒ Bundle
constructor
A new instance of Bundle.
- #url ⇒ Object
Methods included from BasicBundle
#after_download, #delete_existing_folder, #dont_delete, #run_extra, #unpack
Constructor Details
#initialize(name, owner) ⇒ Bundle
Returns a new instance of Bundle.
8 9 10 11 |
# File 'lib/vrundler/bundle.rb', line 8 def initialize(name, owner) @name = name @owner = owner end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/vrundler/bundle.rb', line 6 def name @name end |
#owner ⇒ Object (readonly)
Returns the value of attribute owner.
5 6 7 |
# File 'lib/vrundler/bundle.rb', line 5 def owner @owner end |
Instance Method Details
#bundle_specific_unpack ⇒ Object
13 14 15 16 |
# File 'lib/vrundler/bundle.rb', line 13 def bundle_specific_unpack puts "Unpacking #{url} into #{name}" `git clone #{url} #{name}` end |
#url ⇒ Object
18 19 20 |
# File 'lib/vrundler/bundle.rb', line 18 def url "#{owner.name}#{name}" end |