Method: Puppetfactory::Plugins::Example#userinfo
- Defined in:
- lib/puppetfactory/plugins/example.rb
#userinfo(username, extended = false) ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/puppetfactory/plugins/example.rb', line 34 def userinfo(username, extended = false) # we can bail if we don't want to add to the basic user object. # for example, if these are heavy operations. return unless extended # return a hash with the :username key { :username => username, :example => username.upcase, } end |