Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. def bar=(value)
  2. @property_flush[:bar] = value
  3. end
  4.  
  5. def baz=(value)
  6. @property_flush[:baz] = value
  7. end
  8.  
  9. def flush
  10. array_arguments = []
  11. if @property_flush
  12. array_arguments << '--bar' << @property_flush[:bar] if @property_flush[:bar]
  13. array_arguments << '--baz' << @property_flush[:baz] if @property_flush[:baz]
  14. end
  15. if ! array_arguments.empty?
  16. fooset(array_arguments, resource[:name])
  17. end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement