Class: VRundler::Bundle

Inherits:
Object
  • Object
show all
Includes:
BasicBundle
Defined in:
lib/vrundler/bundle.rb

Instance Attribute Summary collapse

Attributes included from BasicBundle

#completion_block

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/vrundler/bundle.rb', line 6

def name
  @name
end

#ownerObject (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_unpackObject



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

#urlObject



18
19
20
# File 'lib/vrundler/bundle.rb', line 18

def url
  "#{owner.name}#{name}"    
end