Class: Rubysmith::Builders::Caliber

Inherits:
Abstract
  • Object
show all
Defined in:
lib/rubysmith/builders/caliber.rb

Overview

Builds project skeleton with Caliber style support.

Instance Method Summary collapse

Methods inherited from Abstract

#initialize

Constructor Details

This class inherits a constructor from Rubysmith::Builders::Abstract

Instance Method Details

#callObject



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

def call
  return false unless settings.build_caliber

  builder.call(settings.merge(template_path: "%project_name%/bin/rubocop.erb"))
         .render
         .permit 0o755

  path = "%project_name%/.config/rubocop/config.yml.erb"
  builder.call(settings.merge(template_path: path)).render
  true
end