Class: Hanamismith::Builders::Rake

Inherits:
Rubysmith::Builders::Rake
  • Object
show all
Defined in:
lib/hanamismith/builders/rake.rb

Overview

Builds project skeleton Rake support.

Instance Method Summary collapse

Instance Method Details

#callObject



11
12
13
14
15
16
17
18
19
20
# File 'lib/hanamismith/builders/rake.rb', line 11

def call
  return configuration unless configuration.build_rake

  super
  builder.call(configuration.merge(template_path: "%project_name%/Rakefile.erb"))
         .render
         .insert_after(%r(bundler/setup), %(require "hanami/rake_tasks"))

  configuration
end