Module: Rosette::Core::Commands::WithSnapshots
- Included in:
- DiffBaseCommand, ExportCommand, RepoSnapshotCommand, SnapshotCommand
- Defined in:
- lib/rosette/core/commands/git/with_snapshots.rb
Overview
Mixin capable of taking snapshots of git repositories. Meant to be mixed into the classes in Rosette::Core::Commands.
Instance Method Summary collapse
-
#take_snapshot(repo_config, commit_id, paths = []) ⇒ Hash
Takes and returns a snapshot hash for the given repo and commit id.
Instance Method Details
#take_snapshot(repo_config, commit_id, paths = []) ⇒ Hash
Takes and returns a snapshot hash for the given repo and commit id. Limits the paths returned via the paths argument. If no paths are passed, #take_snapshot returns a snapshot containing all the paths in the repository.
31 32 33 |
# File 'lib/rosette/core/commands/git/with_snapshots.rb', line 31 def take_snapshot(repo_config, commit_id, paths = []) __snapshot_factory__.take_snapshot(repo_config, commit_id, paths) end |