Sha256: c47da19dc3da8e96557a1afb9b8518d1b2552a67b6977cd00e007ed5e81c584d

Contents?: true

Size: 489 Bytes

Versions: 8

Compression:

Stored size: 489 Bytes

Contents

# frozen_string_literal: true

require "refinements/struct"

module Rubysmith
  module Builders
    module Docker
      # Builds Docker build script.
      class Build < Abstract
        using Refinements::Struct

        def call
          return false unless settings.build_docker

          builder.call(settings.merge(template_path: "%project_name%/bin/docker/build.erb"))
                 .render
                 .permit 0o755

          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/docker/build.rb
rubysmith-7.9.0 lib/rubysmith/builders/docker/build.rb
rubysmith-7.8.0 lib/rubysmith/builders/docker/build.rb
rubysmith-7.7.0 lib/rubysmith/builders/docker/build.rb
rubysmith-7.6.0 lib/rubysmith/builders/docker/build.rb
rubysmith-7.5.0 lib/rubysmith/builders/docker/build.rb
rubysmith-7.4.0 lib/rubysmith/builders/docker/build.rb
rubysmith-7.3.0 lib/rubysmith/builders/docker/build.rb