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

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

#unpackObject



13
14
15
16
17
# File 'lib/vrundler/bundle.rb', line 13

def unpack
  log "Unpacking #{url} into #{name}"
  `git clone #{url} #{name}`
  run_extra
end

#urlObject



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

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