Sha256: 797e4e532bb1176ae2932ee89b7374ed86a41717ec5f32ed9d3ea38d3c668478

Contents?: true

Size: 487 Bytes

Versions: 8

Compression:

Stored size: 487 Bytes

Contents

# frozen_string_literal: true

require "refinements/struct"

module Rubysmith
  module Builders
    module DevContainer
      # Builds Dockerfile for container.
      class Dockerfile < Abstract
        using Refinements::Struct

        def call
          return false unless settings.build_devcontainer

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rubysmith-8.0.0 lib/rubysmith/builders/dev_container/dockerfile.rb
rubysmith-7.9.0 lib/rubysmith/builders/dev_container/dockerfile.rb
rubysmith-7.8.0 lib/rubysmith/builders/dev_container/dockerfile.rb
rubysmith-7.7.0 lib/rubysmith/builders/dev_container/dockerfile.rb
rubysmith-7.6.0 lib/rubysmith/builders/dev_container/dockerfile.rb
rubysmith-7.5.0 lib/rubysmith/builders/dev_container/dockerfile.rb
rubysmith-7.4.0 lib/rubysmith/builders/dev_container/dockerfile.rb
rubysmith-7.3.0 lib/rubysmith/builders/dev_container/dockerfile.rb