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

Class | Capistrano::Deploy::SCM::None
In: | lib/capistrano/recipes/deploy/scm/none.rb lib/capistrano/recipes/deploy/scm/none.rb
Parent: | Base

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

### Methods

checkout checkout export export head head query_revision query_revision

### Public Instance methods

checkout(revision, destination)

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

[Source]

        # File lib/capistrano/recipes/deploy/scm/none.rb, line 29
    29:         def checkout(revision, destination)
    30:           !Capistrano::Deploy::LocalDependency.on_windows? ? "cp -R #{repository} #{destination}" : "xcopy #{repository} \"#{destination}\" /S/I/Y/Q/E"
    31:         end

checkout(revision, destination)

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

[Source]

        # File lib/capistrano/recipes/deploy/scm/none.rb, line 29
    29:         def checkout(revision, destination)
    30:           !Capistrano::Deploy::LocalDependency.on_windows? ? "cp -R #{repository} #{destination}" : "xcopy #{repository} \"#{destination}\" /S/I/Y/Q/E"
    31:         end

export(revision, destination)

Alias for checkout

export(revision, destination)

Alias for checkout

head()

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

[Source]

        # File lib/capistrano/recipes/deploy/scm/none.rb, line 23
    23:         def head
    24:           ""
    25:         end

head()

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

[Source]

        # File lib/capistrano/recipes/deploy/scm/none.rb, line 23
    23:         def head
    24:           ""
    25:         end

query_revision(revision)

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

[Source]

        # File lib/capistrano/recipes/deploy/scm/none.rb, line 37
    37:         def query_revision(revision)
    38:           revision
    39:         end

query_revision(revision)

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

[Source]

        # File lib/capistrano/recipes/deploy/scm/none.rb, line 37
    37:         def query_revision(revision)
    38:           revision
    39:         end

[Validate]