Sha256: 1030a6efbf9df2c635c50148e089be17479b0e6ea191d1a4b763290efe76b61f

Contents?: true

Size: 508 Bytes

Versions: 9

Compression:

Stored size: 508 Bytes

Contents

# frozen_string_literal: true

require "refinements/struct"

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

        def call
          return false unless settings.build_devcontainer

          path = "%project_name%/.devcontainer/compose.yaml.erb"
          builder.call(settings.merge(template_path: path)).render
          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/dev_container/compose.rb
rubysmith-8.0.0 lib/rubysmith/builders/dev_container/compose.rb
rubysmith-7.9.0 lib/rubysmith/builders/dev_container/compose.rb
rubysmith-7.8.0 lib/rubysmith/builders/dev_container/compose.rb
rubysmith-7.7.0 lib/rubysmith/builders/dev_container/compose.rb
rubysmith-7.6.0 lib/rubysmith/builders/dev_container/compose.rb
rubysmith-7.5.0 lib/rubysmith/builders/dev_container/compose.rb
rubysmith-7.4.0 lib/rubysmith/builders/dev_container/compose.rb
rubysmith-7.3.0 lib/rubysmith/builders/dev_container/compose.rb