Class: Hanamismith::Builders::Caliber

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

Overview

Builds project skeleton with Caliber style support.

Instance Method Summary collapse

Instance Method Details

#callObject



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/hanamismith/builders/caliber.rb', line 11

def call
  return false unless settings.build_caliber

  super
  path = "%project_name%/.config/rubocop/config.yml.erb"
  builder.call(settings.with(template_path: path))
         .append("\nplugins: rubocop-sequel\n\n")
         .append(<<~CONTENT)
           RSpec/SpecFilePathFormat:
             CustomTransform:
               #{settings.project_namespaced_class}: ""
         CONTENT

  true
end