Sha256: e9eb3b78631cc8e6a841896986dcdc548c9da9b709da966ea506fc513f8df3d6

Contents?: true

Size: 703 Bytes

Versions: 10

Compression:

Stored size: 703 Bytes

Contents

<%- assert_locals package -%>
<% @requires = capture do %>
<%- package.services.each do |service| -%>
require "<%= service.service_require %>"
<%- end -%>
require "<%= package.gem.version_require %>"
<% end %>
<%- unless package.empty? -%>
##
# To load this package, including all its services, and instantiate a client:
#
#     require "<%= package.package_require %>"
#     client = <%= package.services.first.create_client_call %>
#
<%- end -%>
module <%= package.module_name %>
end
<% @footer = capture do %>
helper_path = ::File.join __dir__, "<%= package.package_directory_name %>", "<%= package.helpers_file_name %>"
require "<%= package.helpers_require %>" if ::File.file? helper_path
<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
gapic-generator-0.7.2 templates/default/lib/_package.erb
gapic-generator-0.7.1 templates/default/lib/_package.erb
gapic-generator-0.7.0 templates/default/lib/_package.erb
gapic-generator-0.6.15 templates/default/lib/_package.erb
gapic-generator-0.6.14 templates/default/lib/_package.erb
gapic-generator-0.6.13 templates/default/lib/_package.erb
gapic-generator-0.6.12 templates/default/lib/_package.erb
gapic-generator-0.6.11 templates/default/lib/_package.erb
gapic-generator-0.6.10 templates/default/lib/_package.erb
gapic-generator-0.6.9 templates/default/lib/_package.erb