Class: SimpleFeatureFlags::Cli::Runner
- Inherits:
-
Object
- Object
- SimpleFeatureFlags::Cli::Runner
- Extended by:
- T::Sig
- Defined in:
- lib/simple_feature_flags/cli/runner.rb
Overview
Runs CLI commands
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
: Options.
Instance Method Summary collapse
-
#initialize(args = ARGV) ⇒ Runner
constructor
: (?Array args) -> void.
-
#run ⇒ Object
: -> void.
Constructor Details
Instance Attribute Details
#options ⇒ Object (readonly)
: Options
11 12 13 |
# File 'lib/simple_feature_flags/cli/runner.rb', line 11 def end |
Instance Method Details
#run ⇒ Object
: -> void
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/simple_feature_flags/cli/runner.rb', line 19 def run command_class = if .generate ::SimpleFeatureFlags::Cli::Command::Generate else raise NoSuchCommandError, 'No such command!' end command_class.new().run end |