lib/mixlib/install/generator/powershell.rb in mixlib-install-2.0.0 vs lib/mixlib/install/generator/powershell.rb in mixlib-install-2.0.1
- old
+ new
@@ -44,12 +44,18 @@
end
def install_command
install_project_module = []
install_project_module << get_script("helpers.ps1")
- install_project_module << get_script("get_project_metadata.ps1")
+ # TODO: Remove this condition check once the PackageRouter changes for
+ # omnitruck are delivered to production! For now, we will allow
+ # unstable channel requests to omnitruck to use the acceptance environment.
+ if options.channel == :unstable
+ install_project_module << get_script("get_project_metadata.ps1", base_url: "https://omnitruck-acceptance.chef.io/")
+ else
+ install_project_module << get_script("get_project_metadata.ps1")
+ end
install_project_module << get_script("install_project.ps1")
-
install_command = []
install_command << ps1_modularize(install_project_module.join("\n"), "Omnitruck")
install_command << render_command
install_command.join("\n\n")
end