Class: Gemsmith::Builders::CircleCI

Inherits:
Rubysmith::Builders::CircleCI
  • Object
show all
Defined in:
lib/gemsmith/builders/circle_ci.rb

Overview

Builds project skeleton Circle CI settings.

Instance Method Summary collapse

Instance Method Details

#callObject



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

def call
  return false unless settings.build_circle_ci

  super
  builder.call(settings.merge(template_path: "%project_name%/.circleci/config.yml.erb"))
         .replace %({{checksum "Gemfile.lock"}}),
                  %({{checksum "Gemfile"}}-{{checksum "#{project_name}.gemspec"}})

  true
end