Class: Rubysmith::Builders::GitHubCI
- Inherits:
-
Object
- Object
- Rubysmith::Builders::GitHubCI
- Defined in:
- lib/rubysmith/builders/git_hub_ci.rb
Overview
Builds project skeleton GitHub CI template.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(configuration, builder: Builder) ⇒ GitHubCI
constructor
A new instance of GitHubCI.
Constructor Details
Class Method Details
.call ⇒ Object
11 |
# File 'lib/rubysmith/builders/git_hub_ci.rb', line 11 def self.call(...) = new(...).call |
Instance Method Details
#call ⇒ Object
18 19 20 21 22 23 |
# File 'lib/rubysmith/builders/git_hub_ci.rb', line 18 def call return configuration unless configuration.build_git_hub_ci builder.call(configuration_with_template).render.replace(/\n\n\Z/, "\n") configuration end |