Class: RSGem::Tasks::RunRubocop
- Defined in:
- lib/rsgem/tasks/run_rubocop.rb
Constant Summary collapse
- OUTPUT =
OutputStruct.new(name: 'Run rubocop')
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Methods included from Output
Constructor Details
This class inherits a constructor from RSGem::Tasks::Base
Instance Method Details
#perform ⇒ Object
8 9 10 11 12 13 |
# File 'lib/rsgem/tasks/run_rubocop.rb', line 8 def perform return if system("cd #{context.folder_path} && bundle exec rubocop -A", i[out err] => '/dev/null') raise RSGem::Errors::Base, 'Failed to run `bundle exec rubocop -A\'' end |