Sha256: 4a860e7e397fe479548a817a84813fe95e473471e0365f3c413fa8da5706b2e3

Contents?: true

Size: 483 Bytes

Versions: 2

Compression:

Stored size: 483 Bytes

Contents

# frozen_string_literal: true

require "refinements/struct"

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

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

          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/test.rb
hanamismith-0.37.0 lib/hanamismith/builders/environments/test.rb