Class: Nanoc3::Extra::VCS Abstract
- Inherits:
-
Object
- Object
- Nanoc3::Extra::VCS
- Extended by:
- PluginRegistry::PluginMethods
- Defined in:
- lib/nanoc3/extra/vcs.rb
Overview
A very simple representation of a version control system (VCS) that abstracts the add, remove and move operations. It does not commit. This class is primarily used by data sources that store data as flat files on the disk.
Direct Known Subclasses
Nanoc3::Extra::VCSes::Bazaar, Nanoc3::Extra::VCSes::Dummy, Nanoc3::Extra::VCSes::Git, Nanoc3::Extra::VCSes::Mercurial, Nanoc3::Extra::VCSes::Subversion
Instance Method Summary collapse
-
#add(filename) ⇒ void
abstract
Adds the file with the given filename to the working copy.
-
#move(src, dst) ⇒ void
abstract
Moves the file with the given filename to a new location.
-
#remove(filename) ⇒ void
abstract
Removes the file with the given filename from the working copy.
Methods included from PluginRegistry::PluginMethods
identifier, identifiers, named, register
Instance Method Details
#add(filename) ⇒ void
This method returns an undefined value.
Adds the file with the given filename to the working copy.
23 24 25 |
# File 'lib/nanoc3/extra/vcs.rb', line 23 def add(filename) not_implemented('add') end |
#move(src, dst) ⇒ void
This method returns an undefined value.
Moves the file with the given filename to a new location. When this method is executed, the original file should no longer be present on the disk.
51 52 53 |
# File 'lib/nanoc3/extra/vcs.rb', line 51 def move(src, dst) not_implemented('move') end |
#remove(filename) ⇒ void
This method returns an undefined value.
Removes the file with the given filename from the working copy. When this method is executed, the file should no longer be present on the disk.
36 37 38 |
# File 'lib/nanoc3/extra/vcs.rb', line 36 def remove(filename) not_implemented('remove') end |