lib/ohai/plugins/rackspace.rb
# Checks for rackspace provider attribute
#
# === Return
# true:: If rackspace provider attribute found
# false:: Otherwise
Checks for rackspace provider attribute
Return
true:: If rackspace provider attribute found
false:: Otherwise
Checks for rackspace provider attribute Return true :: If rackspace provider attribute found false :: Otherwise
def has_rackspace_metadata?
    so = shell_out("xenstore-read vm-data/provider_data/provider")
    if so.exitstatus == 0
      so.stdout.strip.downcase == 'rackspace'
    end
  rescue Errno::ENOENT
    false
  end
def has_rackspace_metadata? so = shell_out ( "xenstore-read vm-data/provider_data/provider" ) if so . exitstatus == 0 so . stdout . strip . downcase == 'rackspace' end rescue Errno :: ENOENT false end
Checks for rackspace provider attribute
 Return
true:: If rackspace provider attribute found
false:: Otherwise
Checks for rackspace provider attribute Return true :: If rackspace provider attribute found false :: Otherwise