Sha256: c304b13dc93980547a721db04a1227db510ed23fc12698ae30d0c104ea997009

Contents?: true

Size: 504 Bytes

Versions: 9

Compression:

Stored size: 504 Bytes

Contents

# frozen_string_literal: true

require "refinements/struct"

module Rubysmith
  module Builders
    module Docker
      # Builds Docker entrypoint script.
      class Entrypoint < Abstract
        using Refinements::Struct

        def call
          return false unless settings.build_docker

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

          true
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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