Skip to content

Commit

Permalink
Show something if no required params are present
Browse files Browse the repository at this point in the history
  • Loading branch information
lsegal committed Feb 27, 2014
1 parent c1a5d4c commit 7aeeb89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc-src/templates/api-versions/plugin.rb
Expand Up @@ -129,6 +129,7 @@ def add_waiters(service, klass, model)
waiter_ex = ExampleShapeVisitor.new(true).example( waiter_ex = ExampleShapeVisitor.new(true).example(
service.name.to_s.downcase, 'waitFor', model['operations'][operation_name]['input']) service.name.to_s.downcase, 'waitFor', model['operations'][operation_name]['input'])
waiter_ex = waiter_ex.sub(/\.waitFor\(/, ".waitFor('#{name}', ") 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, obj.docstring.add_tag YARD::Tags::Tag.new(:example, waiter_ex, nil,
"Waiting for the #{name} state") "Waiting for the #{name} state")
unless wait_for.docstring.tag(:example) unless wait_for.docstring.tag(:example)
Expand Down

0 comments on commit 7aeeb89

Please sign in to comment.