class BestPracticeProject::RailsBestPracticesHandler

Public Instance Methods

command() click to toggle source
# File lib/best_practice_project/rails_best_practices_handler.rb, line 2
def command
  "bundle exec rails_best_practices"
end
execute() click to toggle source
# File lib/best_practice_project/rails_best_practices_handler.rb, line 10
def execute
  system(command)
end
generate_config() click to toggle source
# File lib/best_practice_project/rails_best_practices_handler.rb, line 6
def generate_config
  system("bundle exec rails_best_practices -g")
end
installed?() click to toggle source
# File lib/best_practice_project/rails_best_practices_handler.rb, line 14
def installed?
  return false unless rails?

  require "rails_best_practices"
  true
rescue LoadError
  false
end