class SimpleFeatureFlags::Cli::Runner
Attributes
options[R]
Public Class Methods
new(args = ARGV)
click to toggle source
# File lib/simple_feature_flags/cli/runner.rb, line 8 def initialize(args = ARGV) @options = Options.new(args) end
Public Instance Methods
run()
click to toggle source
# File lib/simple_feature_flags/cli/runner.rb, line 12 def run command_class = if @options.generate ::SimpleFeatureFlags::Cli::Command::Generate else raise NoSuchCommandError, 'No such command!' end command_class.new(options).run end