Method: WavefrontDisplay::User#groups_as_string
- Defined in:
- lib/wavefront-cli/display/user.rb
#groups_as_string(groups) ⇒ Object
41 42 43 44 45 46 47 |
# File 'lib/wavefront-cli/display/user.rb', line 41 def groups_as_string(groups) return ' <none>' if groups.empty? data.response.groups.map do |g| format(' %<group>s', group: g) end.join("\n ") end |