Class: EhbrsRubyUtils::Fs::Selected::BuildFile

Inherits:
Object
  • Object
show all
Defined in:
lib/ehbrs_ruby_utils/fs/selected/build_file.rb

Instance Method Summary collapse

Instance Method Details

#performObject



13
14
15
# File 'lib/ehbrs_ruby_utils/fs/selected/build_file.rb', line 13

def perform
  target_path.assert_parent.make_symlink(path)
end

#target_basenameObject



21
22
23
# File 'lib/ehbrs_ruby_utils/fs/selected/build_file.rb', line 21

def target_basename
  build.target_basename_proc.call(path)
end

#target_pathObject



17
18
19
# File 'lib/ehbrs_ruby_utils/fs/selected/build_file.rb', line 17

def target_path
  build.target_dir.join(target_basename)
end