gem.mustache #1

  • //
  • guest/
  • paul_allen/
  • hws/
  • dev/
  • plugins/
  • perforce/
  • swagger/
  • templates/
  • ruby/
  • gem.mustache
  • View
  • Commits
  • Open Download .zip Download (927 B)
#
# -------- -------- -------- GENERATED by Swagger -------- -------- --------
#

# Common files
require '{{gemName}}/api_client'
require '{{gemName}}/api_error'
require '{{gemName}}/version'
require '{{gemName}}/configuration'

# Models
{{#models}}
require '{{importPath}}'
{{/models}}
# Custom models
require 'helix_web_services_client/models/job_command'
require 'helix_web_services_client/models/jobs_command'

# APIs
{{#apiInfo}}
{{#apis}}
require '{{importPath}}'
{{/apis}}
{{/apiInfo}}

module {{moduleName}}
  class << self
    # Customize default settings for the SDK using block.
    #   {{moduleName}}.configure do |config|
    #     config.username = "xxx"
    #     config.password = "xxx"
    #   end
    # If no block given, return the default Configuration object.
    def configure
      if block_given?
        yield(Configuration.default)
      else
        Configuration.default
      end
    end
  end
end
# Change User Description Committed
#1 20014 Paul Allen Moved swagger gneration inside project.
//guest/paul_allen/hws/dev/swagger/templates/ruby/gem.mustache
#2 19982 Paul Allen Update java-SDK to use 'collectionFormat: multi' for GET/POST on /p4d/v16.1/{server}/commands/{command} to generate List<String> and not CSVParams.
#1 19981 Paul Allen Ported templates for SDKs and updated gradle build rules.