Class: Mixlib::Install::Generator

Inherits:
Object
  • Object
show all
Defined in:
lib/mixlib/install/generator.rb,
lib/mixlib/install/generator/base.rb,
lib/mixlib/install/generator/bourne.rb,
lib/mixlib/install/generator/powershell.rb

Defined Under Namespace

Classes: Base, Bourne, PowerShell

Class Method Summary collapse

Class Method Details

.install_command(options) ⇒ Object



24
25
26
27
28
29
# File 'lib/mixlib/install/generator.rb', line 24

def self.install_command(options)
  klass = options.for_ps1? ? PowerShell : Bourne
  meth = options.options[:new_omnibus_download_url] ? :install_sh_from_upstream : :install_command

  klass.new(options).send(meth)
end