Sha256: e616b0053719aeab02c2881e0db7d43126d8168ab00c02f3a370c3711ae9efe9

Contents?: true

Size: 377 Bytes

Versions: 10

Compression:

Stored size: 377 Bytes

Contents

# frozen_string_literal: true

require "pathname"
require "refinements/struct"

module Rubysmith
  module Builders
    # Initializes building of project by checking for existence first.
    class Init < Abstract
      using Refinements::Struct

      def call
        builder.call(settings.merge(template_path: "%project_name%")).check
        true
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rubysmith-7.9.0 lib/rubysmith/builders/init.rb
rubysmith-7.8.0 lib/rubysmith/builders/init.rb
rubysmith-7.7.0 lib/rubysmith/builders/init.rb
rubysmith-7.6.0 lib/rubysmith/builders/init.rb
rubysmith-7.5.0 lib/rubysmith/builders/init.rb
rubysmith-7.4.0 lib/rubysmith/builders/init.rb
rubysmith-7.3.0 lib/rubysmith/builders/init.rb
rubysmith-7.2.0 lib/rubysmith/builders/init.rb
rubysmith-7.1.0 lib/rubysmith/builders/init.rb
rubysmith-7.0.0 lib/rubysmith/builders/init.rb