Class: Gemsmith::Skeletons::RubocopSkeleton
- Inherits:
-
BaseSkeleton
- Object
- BaseSkeleton
- Gemsmith::Skeletons::RubocopSkeleton
- Defined in:
- lib/gemsmith/skeletons/rubocop_skeleton.rb
Overview
Configures Rubocop support.
Instance Method Summary collapse
Methods inherited from BaseSkeleton
Constructor Details
This class inherits a constructor from Gemsmith::Skeletons::BaseSkeleton
Instance Method Details
#create ⇒ Object
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 |