lib/mixlib/install.rb in mixlib-install-1.1.0 vs lib/mixlib/install.rb in mixlib-install-1.2.0
- old
+ new
@@ -45,10 +45,19 @@
def artifact_info
Backend.info(options)
end
#
+ # List available versions
+ #
+ # @return [Array<String>] list of available versions for the given
+ # product_name and channel.
+ def available_versions
+ Backend.available_versions(options)
+ end
+
+ #
# Returns an install script for the given options
#
# @return [String] script for installing with given options
#
def install_command
@@ -171,8 +180,16 @@
# base_url [String]
# url pointing to the omnitruck to be queried by the script.
#
def self.install_ps1(context = {})
Mixlib::Install::Generator::PowerShell.install_ps1(context)
+ end
+
+ #
+ # Returns if unified_backend feature flag for mixlib-install is enabled
+ #
+ # @return [Boolean] true if feature is enabled, false otherwise.
+ def self.unified_backend?
+ !ENV["MIXLIB_INSTALL_UNIFIED_BACKEND"].nil?
end
end
end