Class: Ronin::Repos::CLI::Commands::Remove Private
- Inherits:
 - 
      Ronin::Repos::CLI::Command
      
        
- Object
 - Core::CLI::Command
 - Ronin::Repos::CLI::Command
 - Ronin::Repos::CLI::Commands::Remove
 
 
- Defined in:
 - lib/ronin/repos/cli/commands/remove.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.
Deletes a repository from the cache directory.
Usage
ronin-repos remove [options] NAME
Options
-C, --cache-dir DIR              Overrides the default cache directory
-h, --help                       Print help information
Arguments
REPO                             URI of the git repository
  Instance Attribute Summary
Attributes inherited from Ronin::Repos::CLI::Command
Instance Method Summary collapse
- 
  
    
      #run(name)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  private
  
    
Runs the
ronin-repos removecommand. 
Methods inherited from Ronin::Repos::CLI::Command
Constructor Details
This class inherits a constructor from Ronin::Repos::CLI::Command
Instance Method Details
#run(name) ⇒ 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 remove command.
      59 60 61 62 63 64 65  | 
    
      # File 'lib/ronin/repos/cli/commands/remove.rb', line 59 def run(name) repo = cache_dir[name] repo.delete rescue RepositoryNotFound => error print_error(error.) exit(-1) end  |