Class: VRundler::SymlinkBundle
- Inherits:
-
Object
- Object
- VRundler::SymlinkBundle
- Includes:
- BasicBundle
- Defined in:
- lib/vrundler/symlink_bundle.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#source_folder ⇒ Object
readonly
Returns the value of attribute source_folder.
Attributes included from BasicBundle
Instance Method Summary collapse
- #bundle_specific_unpack ⇒ Object
-
#initialize(name, source_folder) ⇒ SymlinkBundle
constructor
A new instance of SymlinkBundle.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/vrundler/symlink_bundle.rb', line 5 def name @name end |
#source_folder ⇒ Object (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_unpack ⇒ Object
13 14 15 |
# File 'lib/vrundler/symlink_bundle.rb', line 13 def bundle_specific_unpack system("ln -s #{source_folder} #{name}") end |