Class: Rubysmith::Builders::Caliber
- Inherits:
-
Object
- Object
- Rubysmith::Builders::Caliber
- Defined in:
- lib/rubysmith/builders/caliber.rb
Overview
Builds project skeleton with Caliber style support.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(configuration, builder: Builder) ⇒ Caliber
constructor
A new instance of Caliber.
Constructor Details
Class Method Details
.call ⇒ Object
11 |
# File 'lib/rubysmith/builders/caliber.rb', line 11 def self.call(...) = new(...).call |
Instance Method Details
#call ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/rubysmith/builders/caliber.rb', line 18 def call return configuration unless configuration.build_caliber builder.call(configuration.merge(template_path: "%project_name%/bin/rubocop.erb")) .render .permit 0o755 builder.call(configuration.merge(template_path: "%project_name%/.rubocop.yml.erb")).render configuration end |