Class: Capistrano::Deploy::SCM::None
- Inherits:
-
Object
- Object
- Capistrano::Deploy::SCM::None
- Defined in:
- lib/locarails/none.rb
Instance Method Summary collapse
-
#checkout(revision, destination) ⇒ Object
(also: #export)
Simply does a copy from the :repository directory to the :destination directory.
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 |