providers/user.rb
def rssh_users
  rssh_resources.reduce({}) do |hash, resource|
    if resource.config_path == new_resource.config_path && resource.action == :add
      hash[resource.name] ||= {}
      hash[resource.name] = resource.send('options')
    end

    hash.merge!(node['rssh']['user'])
    hash
  end
end
# The list of rssh users defined in the resource collection.
#
# @return [Hash]
The list of rssh users defined in the resource collection.
The list of rssh users defined in the resource collection .
def rssh_users
  rssh_resources.reduce({}) do |hash, resource|
    if resource.config_path == new_resource.config_path && resource.action == :add
      hash[resource.name] ||= {}
      hash[resource.name] = resource.send('options')
    end
    hash.merge!(node['rssh']['user'])
    hash
  end
end
def rssh_users rssh_resources . reduce ( { } ) do | hash , resource | if resource . config_path == new_resource . config_path && resource . action == :add hash [ resource . name ] ||= { } hash [ resource . name ] = resource . send ( 'options' ) end hash . merge! ( node [ 'rssh' ] [ 'user' ] ) hash end end
The list of rssh users defined in the resource collection.
The list of rssh users defined in the resource collection .
None
Hash