Sha256: 68fa7cf3305783430acdf6f3b91930613bd0bc25e2b40b935704a4ddb64682f1

Contents?: true

Size: 495 Bytes

Versions: 7

Compression:

Stored size: 495 Bytes

Contents

# frozen_string_literal: true

require "refinements/struct"

module Rubysmith
  module Builders
    module Docker
      # Builds Docker console script.
      class Console < Abstract
        using Refinements::Struct

        def call
          return false unless settings.build_docker

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

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