Sha256: a05434feded3981b7d73b2c62545c0c630a8be33613fef678aa9994d098658e0

Contents?: true

Size: 607 Bytes

Versions: 13

Compression:

Stored size: 607 Bytes

Contents

# frozen_string_literal: true

require "refinements/struct"

module Hanamismith
  module Builders
    module Rake
      # Builds project skeleton Rake configuration file.
      class Configuration < Rubysmith::Builders::Rake::Configuration
        using Refinements::Struct

        def call
          return false unless settings.build_rake

          super
          builder.call(settings.merge(template_path: "%project_name%/Rakefile.erb"))
                 .render
                 .insert_after(%r(bundler/setup), %(require "hanami/rake_tasks"))

          true
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
hanamismith-0.50.0 lib/hanamismith/builders/rake/configuration.rb
hanamismith-0.49.1 lib/hanamismith/builders/rake/configuration.rb
hanamismith-0.49.0 lib/hanamismith/builders/rake/configuration.rb
hanamismith-0.48.0 lib/hanamismith/builders/rake/configuration.rb
hanamismith-0.47.0 lib/hanamismith/builders/rake/configuration.rb
hanamismith-0.46.0 lib/hanamismith/builders/rake/configuration.rb
hanamismith-0.45.0 lib/hanamismith/builders/rake/configuration.rb
hanamismith-0.44.0 lib/hanamismith/builders/rake/configuration.rb
hanamismith-0.43.0 lib/hanamismith/builders/rake/configuration.rb
hanamismith-0.42.0 lib/hanamismith/builders/rake/configuration.rb
hanamismith-0.41.0 lib/hanamismith/builders/rake/configuration.rb
hanamismith-0.40.0 lib/hanamismith/builders/rake/configuration.rb
hanamismith-0.39.0 lib/hanamismith/builders/rake/configuration.rb