Class: Rubysmith::Builders::CircleCI
- Inherits:
-
Object
- Object
- Rubysmith::Builders::CircleCI
- Defined in:
- lib/rubysmith/builders/circle_ci.rb
Overview
Builds project skeleton Circle CI configuration.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(configuration, builder: Builder) ⇒ CircleCI
constructor
A new instance of CircleCI.
Constructor Details
Class Method Details
.call ⇒ Object
11 |
# File 'lib/rubysmith/builders/circle_ci.rb', line 11 def self.call(...) = new(...).call |
Instance Method Details
#call ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/rubysmith/builders/circle_ci.rb', line 18 def call return configuration unless configuration.build_circle_ci builder.call(configuration.merge(template_path: "%project_name%/.circleci/config.yml.erb")) .render .replace(/\n\n\Z/, "\n") configuration end |