lib/rsgem/tasks/run_rubocop.rb in rsgem-0.1.3 vs lib/rsgem/tasks/run_rubocop.rb in rsgem-0.2.0
- old
+ new
@@ -1,16 +1,10 @@
# frozen_string_literal: true
module RSGem
module Tasks
- class RunRubocop
- attr_reader :context, :output
-
- def initialize(context:)
- @context = context
- end
-
- def run
+ class RunRubocop < Base
+ def perform
puts "\tRubocop:"
@output = `cd #{context.folder_path} && bundle exec rubocop -a`
puts "\t\t#{last_line}"
end