Sha256: f22addda5a5024afdc80d6e974a592ee83db2fd06d52ee8a47c7326c1c969c13

Contents?: true

Size: 400 Bytes

Versions: 5

Compression:

Stored size: 400 Bytes

Contents

class BestPracticeProject::RailsBestPracticesHandler < BestPracticeProject::BaseHandler
  def command
    "bundle exec rails_best_practices"
  end

  def generate_config
    system("bundle exec rails_best_practices -g")
  end

  def execute
    system(command)
  end

  def installed?
    return false unless rails?

    require "rails_best_practices"
    true
  rescue LoadError
    false
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
best_practice_project-0.0.12 lib/best_practice_project/rails_best_practices_handler.rb
best_practice_project-0.0.11 lib/best_practice_project/rails_best_practices_handler.rb
best_practice_project-0.0.10 lib/best_practice_project/rails_best_practices_handler.rb
best_practice_project-0.0.9 lib/best_practice_project/rails_best_practices_handler.rb
best_practice_project-0.0.8 lib/best_practice_project/rails_best_practices_handler.rb