Class: PolishGeeks::DevTools::Commands::Rubycritic

Inherits:
Base
  • Object
show all
Defined in:
lib/polish_geeks/dev_tools/commands/rubycritic.rb

Overview

Command wrapper for RubyCritic statistics It informs us if RubyCritic stats were generated

Constant Summary

Constants inherited from Base

Base::TYPES

Instance Attribute Summary

Attributes inherited from Base

#output, #stored_output

Instance Method Summary collapse

Methods inherited from Base

#ensure_executable!, #error_message, #valid?

Instance Method Details

#executeString

Executes this command

Returns:

  • (String)

    command output



11
12
13
# File 'lib/polish_geeks/dev_tools/commands/rubycritic.rb', line 11

def execute
  @output = Shell.new.execute('bundle exec rubycritic ./app ./lib/')
end