Class: FPM::Fry::Plugin::EditStaging::LnS Private

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#destObject

Returns the value of attribute dest

Returns:

  • (Object)

    the current value of dest



28
29
30
# File 'lib/fpm/fry/plugin/edit_staging.rb', line 28

def dest
  @dest
end

#srcObject

Returns the value of attribute src

Returns:

  • (Object)

    the current value of 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