Class: KnifeSolo::Bootstraps::Darwin
- Defined in:
- lib/knife-solo/bootstraps/darwin.rb
Instance Method Summary collapse
Methods inherited from Base
#initialize, #run_pre_bootstrap_checks
Methods included from InstallCommands
#bootstrap!, #gem_install, #gem_options, #gem_packages, #http_client_get_url, #install_ohai_hints, #omnibus_install, #omnibus_options
Methods included from Delegates
#chef_version, #prepare, #run_command, #stream_command, #ui
Constructor Details
This class inherits a constructor from KnifeSolo::Bootstraps::Base
Instance Method Details
#distro ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/knife-solo/bootstraps/darwin.rb', line 8 def distro case issue when %r{10.(?:[6-9]|10)} {:type => 'omnibus'} else raise "OS X version #{issue} not supported" end end |
#issue ⇒ Object
4 5 6 |
# File 'lib/knife-solo/bootstraps/darwin.rb', line 4 def issue @issue ||= run_command("sw_vers -productVersion").stdout.strip end |