Class: Capistrano::Deploy::SCM::None

Inherits:
Object
  • Object
show all
Defined in:
lib/locarails/none.rb

Instance Method Summary collapse

Instance Method Details

#checkout(revision, destination) ⇒ Object Also known as: export

Simply does a copy from the :repository directory to the :destination directory. fix: avoid xcopy parameters to be erroneously replaced by backslashes



5
6
7
# File 'lib/locarails/none.rb', line 5

def checkout(revision, destination)
  !Capistrano::Deploy::LocalDependency.on_windows? ? "cp -R #{repository} #{destination}" : "xcopy #{repository} \"#{destination}\" %%S%%I%%Y%%Q%%E"
end