Class: Spinach::Cli
- Inherits:
-
Object
- Object
- Spinach::Cli
- Defined in:
- lib/spinach/cli.rb
Overview
The cli is a class responsible of handling all the command line interface logic.
Instance Method Summary (collapse)
-
- (Object) init_reporter
Inits the reporter with a default one.
-
- (Cli) initialize(args = ARGV)
constructor
A new instance of Cli.
-
- (Hash) options
A hash of options separated by its type.
-
- (true, false) run
Runs all the features.
Constructor Details
- (Cli) initialize(args = ARGV)
A new instance of Cli
12 13 14 |
# File 'lib/spinach/cli.rb', line 12 def initialize(args = ARGV) @args = args end |
Instance Method Details
- (Object) init_reporter
Inits the reporter with a default one.
29 30 31 32 |
# File 'lib/spinach/cli.rb', line 29 def init_reporter reporter = Spinach::Reporter::Stdout.new([:reporter]) reporter.bind end |
- (Hash) options
A hash of options separated by its type.
42 43 44 |
# File 'lib/spinach/cli.rb', line 42 def @options ||= end |
- (true, false) run
Runs all the features.
22 23 24 |
# File 'lib/spinach/cli.rb', line 22 def run Spinach::Runner.new(feature_files).run end |