Parent

Files

Class/Module Index [+]

Quicksearch

Capistrano::Deploy::SCM::None

A trivial SCM wrapper for representing the current working directory as a repository. Obviously, not all operations are available for this SCM, but it works sufficiently for use with the "copy" deployment strategy.

Use of this module is not recommended; in general, it is good practice to use some kind of source code management even for anything you are wanting to deploy. However, this module is provided in acknowledgement of the cases where trivial deployment of your current working directory is desired.

set :repository, "."
set :scm, :none
set :deploy_via, :copy

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/none.rb, line 29
def checkout(revision, destination)
  !Capistrano::Deploy::LocalDependency.on_windows? ? "cp -R #{repository} #{destination}" : "xcopy #{repository} \"#{destination}\" /S/I/Y/Q/E"
end
Also aliased as: export
export(revision, destination) click to toggle source
Alias for: checkout
head() click to toggle source

No versioning, thus, no head. Returns the empty string.

# File lib/capistrano/recipes/deploy/scm/none.rb, line 23
def head
  ""
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/none.rb, line 43
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/none.rb, line 37
def query_revision(revision)
  revision
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.