class Souschef::Template::Rubocop
Public Class Methods
new(opts)
click to toggle source
Calls superclass method
Souschef::Template::Base::new
# File lib/souschef/template/rubocop.rb, line 5 def initialize(opts) super(opts) end
Public Instance Methods
create()
click to toggle source
Public - Create a .rubocop file
cookbook - String Cookbook name
Returns nil
# File lib/souschef/template/rubocop.rb, line 13 def create tmpl = ERB.new(load_erb_file('rubocop/rubocop.yml')) data = tmpl.result(binding) info 'Setting up Rubocop configuration' write_file(cookbook_file_path('.rubocop.yml'), data) end