Class: Ronin::Repos::CLI::Commands::Install Private
- Inherits:
-
Ronin::Repos::CLI::Command
- Object
- Core::CLI::Command
- Ronin::Repos::CLI::Command
- Ronin::Repos::CLI::Commands::Install
- Includes:
- Core::CLI::Logging
- Defined in:
- lib/ronin/repos/cli/commands/install.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Installs a git repository into the cache directory.
Usage
ronin-repos install [options] [REPO]
Options
-C, --cache-dir DIR Overrides the default cache directory
-h, --help Print help information
Arguments
URI URI of the git repository
Instance Attribute Summary
Attributes inherited from Ronin::Repos::CLI::Command
Instance Method Summary collapse
-
#run(uri) ⇒ Object
private
Runs the
ronin-repos install
command.
Methods inherited from Ronin::Repos::CLI::Command
Constructor Details
This class inherits a constructor from Ronin::Repos::CLI::Command
Instance Method Details
#run(uri) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Runs the ronin-repos install
command.
63 64 65 66 67 68 69 |
# File 'lib/ronin/repos/cli/commands/install.rb', line 63 def run(uri) log_info "Installing repository from #{uri} ..." cache_dir.install(uri) rescue CommandNotInstalled, CommandFailed => error print_error(error.) exit(-1) end |