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
9 10 11 12 13 14 |
# File 'lib/gemsmith/skeletons/rubocop_skeleton.rb', line 9 def create return unless enabled? cli.template "%gem_name%/.rubocop.yml.tt", cli. cli.template "%gem_name%/lib/%gem_name%/tasks/rubocop.rake.tt", cli. end |
#enabled? ⇒ Boolean
5 6 7 |
# File 'lib/gemsmith/skeletons/rubocop_skeleton.rb', line 5 def enabled? cli..key?(:rubocop) && cli.[:rubocop] end |