Class: Rubysmith::CLI::Parsers::Build
- Inherits:
-
Object
- Object
- Rubysmith::CLI::Parsers::Build
- Defined in:
- lib/rubysmith/cli/parsers/build.rb
Overview
Handles parsing of Command Line Interface (CLI) build options. :reek:TooManyMethods
Class Method Summary collapse
Instance Method Summary collapse
- #call(arguments = []) ⇒ Object
-
#initialize(options: {}, client: CLIENT) ⇒ Build
constructor
A new instance of Build.
Constructor Details
Class Method Details
.call(options: {}, client: CLIENT) ⇒ Object
9 |
# File 'lib/rubysmith/cli/parsers/build.rb', line 9 def self.call(options: {}, client: CLIENT) = new(options: , client: client).call |
Instance Method Details
#call(arguments = []) ⇒ Object
16 17 18 19 20 |
# File 'lib/rubysmith/cli/parsers/build.rb', line 16 def call arguments = [] client.separator "\nBUILD OPTIONS:\n" private_methods.sort.grep(/add_/).each { |method| __send__ method } arguments.empty? ? arguments : client.parse!(arguments) end |