lib/mixlib/install.rb in mixlib-install-0.5.0 vs lib/mixlib/install.rb in mixlib-install-0.6.0

- old
+ new

@@ -64,17 +64,17 @@ project use_sudo sudo_command) def initialize(version, powershell = false, opts = {}) - @version = version + @version = version || "latest" @powershell = powershell @http_proxy = nil @https_proxy = nil @install_flags = nil @prerelease = false - @nightly = false + @nightlies = false @endpoint = "metadata" @omnibus_url = "https://www.chef.io/chef/install.sh" @use_sudo = true @sudo_command = "sudo -E" @@ -102,10 +102,10 @@ # platforms. # # @return [String] shell variable lines # @api private def install_command_vars_for_bourne - flags = %w[latest true].include?(version) ? "" : "-v #{CGI.escape(version)}" + flags = %w[latest true nightlies].include?(version) ? "" : "-v #{CGI.escape(version)}" flags << " " << "-n" if nightlies flags << " " << "-p" if prerelease flags << " " << install_flags if install_flags [