Class: FPM::Fry::Plugin::EditStaging::LnS Private
- Inherits:
-
Struct
- Object
- Struct
- FPM::Fry::Plugin::EditStaging::LnS
- Defined in:
- lib/fpm/fry/plugin/edit_staging.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
-
#dest ⇒ Object
Returns the value of attribute dest.
-
#src ⇒ Object
Returns the value of attribute src.
Instance Method Summary collapse
- #call(_, package) ⇒ Object private
Instance Attribute Details
#dest ⇒ Object
Returns the value of attribute dest
28 29 30 |
# File 'lib/fpm/fry/plugin/edit_staging.rb', line 28 def dest @dest end |
#src ⇒ Object
Returns the value of attribute src
28 29 30 |
# File 'lib/fpm/fry/plugin/edit_staging.rb', line 28 def src @src end |
Instance Method Details
#call(_, package) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
29 30 31 32 33 34 |
# File 'lib/fpm/fry/plugin/edit_staging.rb', line 29 def call(_ , package) file = package.staging_path(dest) package.logger.debug("Linking file directly in staging", target: file, to: src) FileUtils.mkdir_p(File.dirname(file)) File.symlink(src, file) end |