Class: Craby::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/craby/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_setup_filesObject



6
7
8
9
10
11
12
# File 'lib/generators/craby/install/install_generator.rb', line 6

def create_setup_files
  copy_file "craby_helper.rb", Rails.root.join("spec/craby_helper.rb")
  copy_file ".rspec", Rails.root.join(".rspec")
  copy_file ".rubocop.yml", Rails.root.join(".rubocop.yml")
  copy_file ".standard.yml", Rails.root.join(".standard.yml")
  system "bin/bundle binstub brakeman rubocop rspec-core --force"
end