Class: Ronin::Repos::CLI::Command Private
- Inherits:
-
Core::CLI::Command
- Object
- Core::CLI::Command
- Ronin::Repos::CLI::Command
- Defined in:
- lib/ronin/repos/cli/command.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.
Base command for all ronin-repos
commands.
Direct Known Subclasses
Ronin::Repos::CLI::Commands::Install, Ronin::Repos::CLI::Commands::List, Ronin::Repos::CLI::Commands::New, Ronin::Repos::CLI::Commands::Purge, Ronin::Repos::CLI::Commands::Remove, Ronin::Repos::CLI::Commands::Show, Ronin::Repos::CLI::Commands::Update
Instance Attribute Summary collapse
-
#cache_dir ⇒ CacheDir
readonly
private
The
ronin-repos
cache directory.
Instance Method Summary collapse
-
#initialize(**kwargs) ⇒ Command
constructor
private
Initializes the command.
Constructor Details
#initialize(**kwargs) ⇒ Command
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.
Initializes the command.
56 57 58 59 60 |
# File 'lib/ronin/repos/cli/command.rb', line 56 def initialize(**kwargs) super(**kwargs) @cache_dir = CacheDir.new end |
Instance Attribute Details
#cache_dir ⇒ CacheDir (readonly)
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.
The ronin-repos
cache directory.
48 49 50 |
# File 'lib/ronin/repos/cli/command.rb', line 48 def cache_dir @cache_dir end |