Permalink
Browse files

Show something if no required params are present

  • Loading branch information...
1 parent c1a5d4c commit 7aeeb89fc0824995bd8087933c15e9e6bbce6f97 @lsegal lsegal committed Feb 27, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 doc-src/templates/api-versions/plugin.rb
View
1 doc-src/templates/api-versions/plugin.rb
@@ -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)

0 comments on commit 7aeeb89

Please sign in to comment.