Sha256: d8204a140739e5c07aad196533209e976784c142b7befc98e313b33080558069

Contents?: true

Size: 1.01 KB

Versions: 15

Compression:

Stored size: 1.01 KB

Contents

module VagrantPlugins
  module Chef
    # Read more about the Omnibus installer here:
    #
    #   https://docs.chef.io/install_omnibus.html
    #
    module Omnibus
      OMNITRUCK = "https://omnitruck.chef.io".freeze

      def sh_command(project, version, channel, options = {})
        command =  "curl -sL #{OMNITRUCK}/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, options = {})
        command =  ". { iwr -useb #{OMNITRUCK}/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

15 entries across 15 versions & 3 rubygems

Version Path
vagrant-unbundled-1.9.7.1 plugins/provisioners/chef/omnibus.rb
vagrant-aws-mkubenka-0.7.2.pre.14 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/plugins/provisioners/chef/omnibus.rb
vagrant-aws-mkubenka-0.7.2.pre.11 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/plugins/provisioners/chef/omnibus.rb
vagrant-aws-mkubenka-0.7.2.pre.10 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/plugins/provisioners/chef/omnibus.rb
vagrant-aws-mkubenka-0.7.2.pre.9 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/plugins/provisioners/chef/omnibus.rb
vagrant-unbundled-1.9.5.1 plugins/provisioners/chef/omnibus.rb
vagrant-unbundled-1.9.1.1 plugins/provisioners/chef/omnibus.rb
vagrant-compose-yaml-0.1.3 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/provisioners/chef/omnibus.rb
vagrant-compose-yaml-0.1.2 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/provisioners/chef/omnibus.rb
vagrant-compose-yaml-0.1.1 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/provisioners/chef/omnibus.rb
vagrant-compose-yaml-0.1.0 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/provisioners/chef/omnibus.rb
vagrant-unbundled-1.8.5.2 plugins/provisioners/chef/omnibus.rb
vagrant-unbundled-1.8.5.1 plugins/provisioners/chef/omnibus.rb
vagrant-unbundled-1.8.4.2 plugins/provisioners/chef/omnibus.rb
vagrant-unbundled-1.8.4.1 plugins/provisioners/chef/omnibus.rb