Class: Mixlib::Install::Dist
- Inherits:
-
Object
- Object
- Mixlib::Install::Dist
- Defined in:
- lib/mixlib/install/dist.rb
Constant Summary collapse
- PROJECT_NAME =
This class is not fully implemented, depending it is not recommended! Default project name
"Chef".freeze
- PRODUCT_ENDPOINT =
Binary repository base endpoint
"https://packages.chef.io".freeze
- OMNITRUCK_ENDPOINT =
Omnitruck endpoint
"https://omnitruck.chef.io".freeze
- COMMERCIAL_API_ENDPOINT =
Commercial API endpoint
"https://chefdownload-commercial.chef.io".freeze
- TRIAL_API_ENDPOINT =
Trial API endpoint
"https://chefdownload-trial.chef.io".freeze
- DEFAULT_PRODUCT =
Default product name
"chef".freeze
- DOWNLOADS_PAGE =
Default download page URL
"https://downloads.chef.io".freeze
- GITHUB_ORG =
Default github org
"chef".freeze
- BUG_URL =
Bug report URL
"https://github.com/chef/omnitruck/issues/new".freeze
- SUPPORT_URL =
Support ticket URL
"https://www.chef.io/support/tickets".freeze
- RESOURCES_URL =
Resources URL
"https://www.chef.io/support".freeze
- MACOS_VOLUME =
MacOS volume name
"chef_software".freeze
- OMNIBUS_WINDOWS_INSTALL_DIR =
Omnibus Windows install directory name
"opscode".freeze
- OMNIBUS_LINUX_INSTALL_DIR =
Omnibus Linux install directory name
"/opt".freeze
- HABITAT_WINDOWS_INSTALL_DIR =
Habitat Windows install directory name
"hab\\pkgs".freeze
- HABITAT_LINUX_INSTALL_DIR =
Habitat Linux install directory name
"/hab/pkgs".freeze
Class Method Summary collapse
-
.commercial_license?(license_id) ⇒ Boolean
Check if a license_id is for commercial API.
-
.trial_license?(license_id) ⇒ Boolean
Check if a license_id is for trial API.
Class Method Details
.commercial_license?(license_id) ⇒ Boolean
Check if a license_id is for commercial API
49 50 51 52 |
# File 'lib/mixlib/install/dist.rb', line 49 def self.commercial_license?(license_id) !license_id.nil? && !license_id.to_s.empty? && !trial_license?(license_id) end |
.trial_license?(license_id) ⇒ Boolean
Check if a license_id is for trial API
41 42 43 44 |
# File 'lib/mixlib/install/dist.rb', line 41 def self.trial_license?(license_id) !license_id.nil? && !license_id.to_s.empty? && license_id.start_with?("free-", "trial-") end |