Class: Chap::Strategy::Hardlink

Inherits:
Checkout show all
Defined in:
lib/chap/strategy/hardlink.rb

Constant Summary

Constants included from Chap::SpecialMethods

Chap::SpecialMethods::SPECIAL_METHODS

Instance Attribute Summary

Attributes inherited from Base

#config, #options

Instance Method Summary collapse

Methods inherited from Checkout

#checkout, #deploy, #sync, #update

Methods included from Benchmarking

#benchmarks, included, #report_benchmarks, #shorten_name

Methods inherited from Base

#deploy, #initialize

Methods included from Chap::SpecialMethods

included

Constructor Details

This class inherits a constructor from Chap::Strategy::Base

Instance Method Details

#copyObject



4
5
6
7
8
9
# File 'lib/chap/strategy/hardlink.rb', line 4

def copy
  copy = File.expand_path("../util/copy.rb", __FILE__)
  command = "#{copy} #{cached_path} #{release_path} && #{mark}"
  run command
  log "Code copied to #{release_path}".colorize(:green)
end