Sha256: 55ba2334c3f52554ff7123961517f70d7d96428494ebb531cb77835db048cc91

Contents?: true

Size: 437 Bytes

Versions: 7

Compression:

Stored size: 437 Bytes

Contents

# frozen_string_literal: true

require "refinements/struct"

module Rubysmith
  module Builders
    module Docker
      # Builds Dockerfile configuration.
      class File < Abstract
        using Refinements::Struct

        def call
          return false unless settings.build_docker

          builder.call(settings.merge(template_path: "%project_name%/Dockerfile.erb")).render
          true
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rubysmith-7.9.0 lib/rubysmith/builders/docker/file.rb
rubysmith-7.8.0 lib/rubysmith/builders/docker/file.rb
rubysmith-7.7.0 lib/rubysmith/builders/docker/file.rb
rubysmith-7.6.0 lib/rubysmith/builders/docker/file.rb
rubysmith-7.5.0 lib/rubysmith/builders/docker/file.rb
rubysmith-7.4.0 lib/rubysmith/builders/docker/file.rb
rubysmith-7.3.0 lib/rubysmith/builders/docker/file.rb