Class: Recipes::Style

Inherits:
Rails::AppBuilder
  • Object
show all
Defined in:
lib/potassium/recipes/style.rb

Instance Method Summary collapse

Instance Method Details

#createObject



2
3
4
5
6
7
8
# File 'lib/potassium/recipes/style.rb', line 2

def create
  copy_file '../assets/.rubocop.yml', '.rubocop.yml'
  copy_file '../assets/.ruby_style.yml', '.ruby_style.yml'
  copy_file '../assets/.hound.yml', '.hound.yml'
  append_to_file '.gitignore', '.rubocop-http*\n'
  add_readme_header :style_guide
end

#installObject



10
11
12
# File 'lib/potassium/recipes/style.rb', line 10

def install
  create
end