Sha256: fa5c18a2ad0e81be2778a4d9b353f96e934691ce11ff9271f2d90e86f8229efd

Contents?: true

Size: 511 Bytes

Versions: 2

Compression:

Stored size: 511 Bytes

Contents

# frozen_string_literal: true

require "refinements/struct"

module Hanamismith
  module Builders
    module Environments
      # Builds development environment skeleton.
      class Development < Rubysmith::Builders::Abstract
        using Refinements::Struct

        def call
          builder.call(configuration.merge(template_path: "%project_name%/env.development.erb"))
                 .render
                 .rename(".env.development")

          configuration
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hanamismith-0.38.0 lib/hanamismith/builders/environments/development.rb
hanamismith-0.37.0 lib/hanamismith/builders/environments/development.rb