Class: Gemsmith::Skeletons::RakeSkeleton

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

Overview

Configures Rake support.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseSkeleton

create, #enabled?, #initialize

Constructor Details

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

Class Method Details

.allowed_optionsObject



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

def self.allowed_options
  {
    rspec: "spec",
    rubocop: "rubocop"
  }
end

Instance Method Details

#createObject



12
13
14
15
# File 'lib/gemsmith/skeletons/rake_skeleton.rb', line 12

def create
  cli.template "%gem_name%/Rakefile.tt", cli.template_options
  configure_rakefile
end