Class: Palmade::Cableguy::Builders::CableSymlink
- Defined in:
- lib/palmade/cableguy/builders/cable_symlink.rb
Instance Attribute Summary
Attributes inherited from Cable
Instance Method Summary collapse
Methods inherited from Cable
add_as, build, build_key, builders, #initialize, supported_builders
Constructor Details
This class inherits a constructor from Palmade::Cableguy::Cable
Instance Method Details
#configure(cabler, cabling, target) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/palmade/cableguy/builders/cable_symlink.rb', line 5 def configure(cabler, cabling, target) source = @args.shift destination = @args.shift cabler.say_with_time "creating symlink #{source} -> #{destination}" do FileUtils.ln_s(source, destination, :force => true) end end |