Method: LicenseAcceptance::ProductReader#get_location

Defined in:
lib/license_acceptance/product_reader.rb

#get_locationObject



50
51
52
53
54
55
56
57
58
59
# File 'lib/license_acceptance/product_reader.rb', line 50

def get_location
  # For local development point this to the product_info.toml at the root of the repo.
  # When bundled as a gem we will use the the relative path to find the file in the
  # gem package.
  if ENV["CHEF_LICENSE_PRODUCT_INFO"]
    return ENV["CHEF_LICENSE_PRODUCT_INFO"]
  end

  File.absolute_path(File.join(__FILE__, "../../../config/product_info.toml"))
end