Sha256: 0bd2bba65a89b0a256b48d17108f8368908589bad3b2e2cdf8f82ad72d9fc8a0

Contents?: true

Size: 811 Bytes

Versions: 1

Compression:

Stored size: 811 Bytes

Contents

module VagrantPlugins
  module Chef
    module Omnibus
      OMNITRUCK = "https://www.chef.io/chef/install.sh".freeze

      # Read more about the Omnibus installer here:
      # https://docs.getchef.com/install_omnibus.html
      def build_command(version, prerelease = false, download_path = nil)
        command = "curl -sL #{OMNITRUCK} | sudo bash"

        if prerelease || version != :latest || download_path != nil
          command << " -s --"
        end

        if prerelease
          command << " -p"
        end

        if version != :latest
          command << " -v \"#{version}\""
        end

        if download_path
          command << " -d \"#{download_path}\""
        end

        command
      end
      module_function :build_command
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-cloudstack-1.2.0 vendor/bundle/bundler/gems/vagrant-c84e05fd063f/plugins/provisioners/chef/omnibus.rb