Ravn::CLI::
DevSubcommand module
Public Class Methods
Extension callback – also extend with regular Subcommand
utilities.
Public Instance Methods
Return an array of basenames of repos in in the project dir.
Do a git checkout
with the specified rev
.
Return a list of the commits in the branch with the given branchname
.
Return the name of the branch of the git repo in the current directory.
Do a git fetch
in the current directory.
Do a ‘git fetch’ on all the specified repos in parallel.
Do a git pull
and return the output lines.
Run git rev-parse
on the specified rev
and return the resulting SHA, or nil
if it doesn’t result in a SHA.
Fetch the current git status as a Hash keyed by the porcelain status type.
Return the name of the tracking branch for the repo in the current directory.
Returns true
if the branch of the git repo in the current directory is up to date.
Set the CWD to either the specified subdir
of the configured project directory, if specified, or the project directory itself, yield to the block, then restore the original CWD. Exits the command with an appropriate error message if the configured project directory doesn’t exist.
Given a raw_name
for a Ravn
project, return a normalized form vetted against the configured projects.
Return an array of repo names based on provided options and arguments. If options.all
, use all repos in the project directory. If not, and repos are passed in as positional arguments, use them. Otherwise, use the default set of repos.