class ChefFixie::Sql::Orgs
Constants
- GlobalOrg
Public Class Methods
org_guid_to_name(guid)
click to toggle source
# File lib/chef_fixie_shahid/sql_objects.rb, line 432 def self.org_guid_to_name(guid) "global" if guid == GlobalOrg # Cache the class @orgs ||= Orgs.new names = @orgs.by_id(guid).all(1) if names.count == 1 names.first.name else "unknown-#{guid}" end end