lib/rubysmith/cli/parsers/build.rb in rubysmith-0.11.0 vs lib/rubysmith/cli/parsers/build.rb in rubysmith-0.12.0
- old
+ new
@@ -2,13 +2,12 @@
module Rubysmith
module CLI
module Parsers
# Handles parsing of Command Line Interface (CLI) build options.
- # :reek:TooManyMethods
class Build
- def self.call(options: {}, client: CLIENT) = new(options: options, client: client).call
+ def self.call(...) = new(...).call
def initialize options: {}, client: CLIENT
@options = options
@client = client
end
@@ -75,10 +74,16 @@
client.on "--[no-]pry", "Add Pry." do |value|
options[:build_pry] = value
end
end
+ def add_rake
+ client.on "--[no-]rake", "Add Rake." do |value|
+ options[:build_rake] = value
+ end
+ end
+
def add_reek
client.on "--[no-]reek", "Add Reek." do |value|
options[:build_reek] = value
end
end
@@ -99,24 +104,24 @@
client.on "--[no-]rubocop", "Add Rubocop." do |value|
options[:build_rubocop] = value
end
end
- def add_ruby_critic
- client.on "--[no-]ruby_critic", "Add RubyCritic." do |value|
- options[:build_ruby_critic] = value
- end
- end
-
def add_setup
client.on "--[no-]setup", "Add setup script." do |value|
options[:build_setup] = value
end
end
def add_simple_cov
client.on "--[no-]simple_cov", "Add SimpleCov." do |value|
options[:build_simple_cov] = value
+ end
+ end
+
+ def add_zeitwerk
+ client.on "--[no-]zeitwerk", "Add Zeitwerk." do |value|
+ options[:build_zeitwerk] = value
end
end
end
end
end