Class: Rubysmith::Builders::GitHub::Funding

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

Overview

Builds project skeleton GitHub funding template.

Instance Method Summary collapse

Methods inherited from Abstract

#initialize

Constructor Details

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

Instance Method Details

#callObject



12
13
14
15
16
17
18
19
# File 'lib/rubysmith/builders/git_hub/funding.rb', line 12

def call
  return false unless settings.build_git_hub && settings.build_funding

  settings.merge(template_path: "%project_name%/.github/FUNDING.yml.erb")
          .then { |updated_configuration| builder.call(updated_configuration).render }

  true
end