Sha256: 0611815ac78c70fae582e027495e5914d91d90e64e310ca8d9bc6b3184ee14ff

Contents?: true

Size: 729 Bytes

Versions: 41

Compression:

Stored size: 729 Bytes

Contents

require_relative "../../omnibus"

module VagrantPlugins
  module Chef
    module Cap
      module Suse
        module ChefInstall
          def self.chef_install(machine, project, version, channel, omnibus_url, options = {})
            unless curl?(machine)
              machine.communicate.sudo("zypper -n -q update")
              machine.communicate.sudo("zypper -n -q install curl")
            end

            command = Omnibus.sh_command(project, version, channel, omnibus_url, options)
            machine.communicate.sudo(command)
          end

          protected

          def self.curl?(machine)
            machine.communicate.test("/usr/bin/which -s curl")
          end
        end
      end
    end
  end
end

Version data entries

41 entries across 37 versions & 5 rubygems

Version Path
vagrant-unbundled-2.3.6.0 plugins/provisioners/chef/cap/suse/chef_install.rb
tamtam-vagrant-reload-1.2.1 vendor/cache/vagrant-2092df529ae7/plugins/provisioners/chef/cap/suse/chef_install.rb
vagrant-unbundled-2.3.3.0 plugins/provisioners/chef/cap/suse/chef_install.rb
vagrant-unbundled-2.3.2.0 plugins/provisioners/chef/cap/suse/chef_install.rb
vagrant-unbundled-2.2.19.0 plugins/provisioners/chef/cap/suse/chef_install.rb
vagrant-unbundled-2.2.18.0 plugins/provisioners/chef/cap/suse/chef_install.rb
vagrant-unbundled-2.2.16.0 plugins/provisioners/chef/cap/suse/chef_install.rb
vagrant-unbundled-2.2.14.0 plugins/provisioners/chef/cap/suse/chef_install.rb
vagrant-aws-mkubenka-0.7.2.pre.24 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-22795b161bf6/plugins/provisioners/chef/cap/suse/chef_install.rb
vagrant-unbundled-2.2.10.0 plugins/provisioners/chef/cap/suse/chef_install.rb
vagrant-unbundled-2.2.9.0 plugins/provisioners/chef/cap/suse/chef_install.rb
vagrant-unbundled-2.2.8.0 plugins/provisioners/chef/cap/suse/chef_install.rb
vagrant-unbundled-2.2.7.0 plugins/provisioners/chef/cap/suse/chef_install.rb
vagrant-unbundled-2.2.6.2 plugins/provisioners/chef/cap/suse/chef_install.rb
vagrant-unbundled-2.2.6.1 plugins/provisioners/chef/cap/suse/chef_install.rb
vagrant-unbundled-2.2.6.0 plugins/provisioners/chef/cap/suse/chef_install.rb
vagrant-unbundled-2.2.5.0 plugins/provisioners/chef/cap/suse/chef_install.rb
vagrant-unbundled-2.2.4.0 plugins/provisioners/chef/cap/suse/chef_install.rb
vagrant-unbundled-2.2.3.0 plugins/provisioners/chef/cap/suse/chef_install.rb
vagrant-unbundled-2.2.2.0 plugins/provisioners/chef/cap/suse/chef_install.rb