Sha256: 2ba7a1f0d1540ef68f74dca05e7678902ac7b45b997a0022180cdb55e65a4afe

Contents?: true

Size: 500 Bytes

Versions: 7

Compression:

Stored size: 500 Bytes

Contents

# frozen_string_literal: true

require "refinements/struct"

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

        def call
          return false unless settings.build_devcontainer

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