Class: CandyCheck::CLI::Commands::Base
- Inherits:
-
Object
- Object
- CandyCheck::CLI::Commands::Base
- Defined in:
- lib/candy_check/cli/commands/base.rb
Overview
Base for all commands providing simple support for running a single command and printing to an Out instance
Class Method Summary collapse
-
.run(*args) ⇒ Base
Run a single instance of a command.
Instance Method Summary collapse
-
#initialize(options = nil) ⇒ Base
constructor
Initialize a new command and prepare options for the run.
Constructor Details
#initialize(options = nil) ⇒ Base
Initialize a new command and prepare options for the run
9 10 11 |
# File 'lib/candy_check/cli/commands/base.rb', line 9 def initialize( = nil) @options = end |
Class Method Details
.run(*args) ⇒ Base
Run a single instance of a command
16 17 18 |
# File 'lib/candy_check/cli/commands/base.rb', line 16 def self.run(*args) new(*args).tap(&:run) end |