Class: RubocopDirector::Runner
- Inherits:
-
Object
- Object
- RubocopDirector::Runner
- Defined in:
- lib/rubocop_director/runner.rb
Instance Method Summary collapse
-
#initialize(args) ⇒ Runner
constructor
A new instance of Runner.
- #perform ⇒ Object
Constructor Details
#initialize(args) ⇒ Runner
Returns a new instance of Runner.
9 10 11 12 13 |
# File 'lib/rubocop_director/runner.rb', line 9 def initialize(args) @options = {} arg_parser.parse(args, into: @options) end |
Instance Method Details
#perform ⇒ Object
15 16 17 18 19 20 |
# File 'lib/rubocop_director/runner.rb', line 15 def perform command.run.either( ->() { puts }, ->() { puts "\nFailure: #{}" } ) end |