Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Show something if no required params are present

  • Loading branch information...
commit 7aeeb89fc0824995bd8087933c15e9e6bbce6f97 1 parent c1a5d4c
Loren Segal lsegal authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  doc-src/templates/api-versions/plugin.rb
1  doc-src/templates/api-versions/plugin.rb
View
@@ -129,6 +129,7 @@ def add_waiters(service, klass, model)
waiter_ex = ExampleShapeVisitor.new(true).example(
service.name.to_s.downcase, 'waitFor', model['operations'][operation_name]['input'])
waiter_ex = waiter_ex.sub(/\.waitFor\(/, ".waitFor('#{name}', ")
+ waiter_ex = waiter_ex.sub(/\{\s+\}/, "{\n // ... input parameters ...\n}")
obj.docstring.add_tag YARD::Tags::Tag.new(:example, waiter_ex, nil,
"Waiting for the #{name} state")
unless wait_for.docstring.tag(:example)
Please sign in to comment.
Something went wrong with that request. Please try again.