Class: VRundler::SymlinkBundle

Inherits:
Object
  • Object
show all
Includes:
BasicBundle
Defined in:
lib/vrundler/symlink_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, source_folder) ⇒ SymlinkBundle

Returns a new instance of SymlinkBundle.



8
9
10
11
# File 'lib/vrundler/symlink_bundle.rb', line 8

def initialize(name, source_folder)
  @name = name.to_s
  @source_folder = source_folder
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/vrundler/symlink_bundle.rb', line 5

def name
  @name
end

#source_folderObject (readonly)

Returns the value of attribute source_folder.



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

def source_folder
  @source_folder
end

Instance Method Details

#bundle_specific_unpackObject



13
14
15
# File 'lib/vrundler/symlink_bundle.rb', line 13

def bundle_specific_unpack
  system("ln -s #{source_folder} #{name}") 
end