Sha256: fad8433c2cecaab8f0de64a04f96571bc3deb2ffa0163483d9b903a1260f14dc

Contents?: true

Size: 445 Bytes

Versions: 7

Compression:

Stored size: 445 Bytes

Contents

# frozen_string_literal: true

require "refinements/struct"

module Rubysmith
  module Builders
    module Docker
      # Builds Docker ignore configuration.
      class Ignore < Abstract
        using Refinements::Struct

        def call
          return false unless settings.build_docker

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

Version data entries

7 entries across 7 versions & 1 rubygems

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