Sha256: f68037e37663aa098a0c3d8405a017f7c7ca7cc6136e764bbf1a1806b6b9ad86

Contents?: true

Size: 1010 Bytes

Versions: 41

Compression:

Stored size: 1010 Bytes

Contents

module VagrantPlugins
  module Chef
    # Read more about the Omnibus installer here:
    #
    #   https://docs.chef.io/install_omnibus.html
    #
    module Omnibus
      def sh_command(project, version, channel, omnibus_url, options = {})
        command =  "curl -sL #{omnibus_url}/install.sh | bash"
        command << " -s -- -P \"#{project}\" -c \"#{channel}\""

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

        if options[:download_path]
          command << " -d \"#{options[:download_path]}\""
        end

        command
      end
      module_function :sh_command

      def ps_command(project, version, channel, omnibus_url, options = {})
        command =  ". { iwr -useb #{omnibus_url}/install.ps1 } | iex; install"
        command << " -project '#{project}' -channel '#{channel}'"

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

        command
      end
      module_function :ps_command
    end
  end
end

Version data entries

41 entries across 37 versions & 5 rubygems

Version Path
vagrant-unbundled-2.2.0.0 plugins/provisioners/chef/omnibus.rb
vagrant-unbundled-2.1.4.0 plugins/provisioners/chef/omnibus.rb
vagrant-unbundled-2.1.2.0 plugins/provisioners/chef/omnibus.rb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-04f7215b5e3f/plugins/provisioners/chef/omnibus.rb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-04f7215b5e3f/plugins/provisioners/chef/omnibus.rb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-04f7215b5e3f/plugins/provisioners/chef/omnibus.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-04f7215b5e3f/plugins/provisioners/chef/omnibus.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-04f7215b5e3f/plugins/provisioners/chef/omnibus.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-04f7215b5e3f/plugins/provisioners/chef/omnibus.rb
vagrant-unbundled-2.1.1.0 plugins/provisioners/chef/omnibus.rb
vagrant-unbundled-2.0.4.0 plugins/provisioners/chef/omnibus.rb
vagrant-unbundled-2.0.3.0 plugins/provisioners/chef/omnibus.rb
vagrant-aws-detiber-0.7.2.pre.4 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-419afb4dcffe/plugins/provisioners/chef/omnibus.rb
vagrant-aws-detiber-0.7.2.pre.3 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-419afb4dcffe/plugins/provisioners/chef/omnibus.rb
vagrant-aws-detiber-0.7.2.pre.2 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-419afb4dcffe/plugins/provisioners/chef/omnibus.rb
vagrant-unbundled-2.0.2.0 plugins/provisioners/chef/omnibus.rb
vagrant-unbundled-2.0.1.0 plugins/provisioners/chef/omnibus.rb
vagrant-aws-mkubenka-0.7.2.pre.22 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-f3fdbf414272/plugins/provisioners/chef/omnibus.rb
vagrant-aws-mkubenka-0.7.2.pre.16 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-1ee58c40e3f5/plugins/provisioners/chef/omnibus.rb
vagrant-unbundled-2.0.0.1 plugins/provisioners/chef/omnibus.rb