Class: Gemsmith::Skeletons::RubocopSkeleton

Inherits:
BaseSkeleton show all
Defined in:
lib/gemsmith/skeletons/rubocop_skeleton.rb

Overview

Configures Rubocop support.

Instance Method Summary collapse

Methods inherited from BaseSkeleton

create, #initialize

Constructor Details

This class inherits a constructor from Gemsmith::Skeletons::BaseSkeleton

Instance Method Details

#createObject



5
6
7
8
9
10
# File 'lib/gemsmith/skeletons/rubocop_skeleton.rb', line 5

def create
  return unless configuration.create_rubocop?

  cli.template "%gem_name%/.rubocop.yml.tt", configuration.to_h
  cli.template "%gem_name%/lib/tasks/rubocop.rake.tt", configuration.to_h
end