class Capistrano::Deploy::SCM::Fs

Public Instance Methods

checkout(revision, destination) click to toggle source

Simply does a copy from the :repository directory to the :destination directory.

# File lib/capistrano/recipes/deploy/scm/fs.rb, line 13
def checkout(revision, destination)
  !Capistrano::Deploy::LocalDependency.on_windows? ? "cp -R#{configuration[:copy_dereference_symlink]?'L':''} #{File.join(repository, revision.to_s)} #{destination}" : "xcopy #{File.join(repository,revision.to_s)} \"#{destination}\" /S/I/Y/Q/E"
end
Also aliased as: export
export(revision, destination)
Alias for: checkout
head() click to toggle source
# File lib/capistrano/recipes/deploy/scm/fs.rb, line 7
def head
  last_modified_directory
end
last_modified_directory() click to toggle source
# File lib/capistrano/recipes/deploy/scm/fs.rb, line 30
def last_modified_directory
  File.basename(Dir.glob(File.join(variable(:repository), "*")).reject {|f| File.file? f }.sort_by {|o| File.ctime(o) }.shift)
end
log(from="", to="") click to toggle source

log: There's no log, so it just echos from and to.

# File lib/capistrano/recipes/deploy/scm/fs.rb, line 26
def log(from="", to="")
  "No SCM: #{from} - #{to}"
end
query_revision(revision) click to toggle source

No versioning, so this just returns the argument, with no modification.

# File lib/capistrano/recipes/deploy/scm/fs.rb, line 21
def query_revision(revision)
  revision
end