Sha256: 38378e510e892369e2329ddc324837974879b8fbc1ac268b8bff63fc8ad214a3

Contents?: true

Size: 660 Bytes

Versions: 19

Compression:

Stored size: 660 Bytes

Contents

<%- assert_locals service -%>
@configure ||= begin
  namespace = <%= service.namespace.split("::").reject(&:empty?).inspect %>
  parent_config = while namespace.any?
                    parent_name = namespace.join "::"
                    parent_const = const_get parent_name
                    break parent_const.configure if parent_const&.respond_to? :configure
                    namespace.pop
                  end
  default_config = <%= service.client_name %>::Configuration.new parent_config
  <%= render partial: "service/client/self_configure_defaults", locals: {service: service} %>
  default_config
end
yield @configure if block_given?
@configure

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
gapic-generator-cloud-0.6.15 templates/cloud/service/client/_self_configure.erb
gapic-generator-cloud-0.6.14 templates/cloud/service/client/_self_configure.erb
gapic-generator-cloud-0.6.13 templates/cloud/service/client/_self_configure.erb
gapic-generator-cloud-0.6.12 templates/cloud/service/client/_self_configure.erb
gapic-generator-cloud-0.6.11 templates/cloud/service/client/_self_configure.erb
gapic-generator-cloud-0.6.10 templates/cloud/service/client/_self_configure.erb
gapic-generator-cloud-0.6.9 templates/cloud/service/client/_self_configure.erb
gapic-generator-cloud-0.6.8 templates/cloud/service/client/_self_configure.erb
gapic-generator-cloud-0.6.7 templates/cloud/service/client/_self_configure.erb
gapic-generator-cloud-0.6.6 templates/cloud/service/client/_self_configure.erb
gapic-generator-cloud-0.6.5 templates/cloud/service/client/_self_configure.erb
gapic-generator-cloud-0.6.4 templates/cloud/service/client/_self_configure.erb
gapic-generator-cloud-0.6.3 templates/cloud/service/client/_self_configure.erb
gapic-generator-cloud-0.6.2 templates/cloud/service/client/_self_configure.erb
gapic-generator-cloud-0.6.1 templates/cloud/service/client/_self_configure.erb
gapic-generator-cloud-0.6.0 templates/cloud/service/client/_self_configure.erb
gapic-generator-cloud-0.5.1 templates/cloud/service/client/_self_configure.erb
gapic-generator-cloud-0.5.0 templates/cloud/service/client/_self_configure.erb
gapic-generator-cloud-0.4.2 templates/cloud/service/client/_self_configure.erb