Sha256: 95dbb01fe79b40adcf08884b2f7ba21ca1dbe611234df8dd26427e58c2612b85

Contents?: true

Size: 320 Bytes

Versions: 4

Compression:

Stored size: 320 Bytes

Contents

module KnifeSolo::Bootstraps
  class Darwin < Base

    def issue
      @issue ||= run_command("sw_vers -productVersion").stdout.strip
    end

    def distro
      case issue
      when %r{10.[6-9]}
        {:type => 'omnibus'}
      else
        raise "OS X version #{issue} not supported"
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
knife-solo-0.4.3 lib/knife-solo/bootstraps/darwin.rb
knife-solo-0.5.1 lib/knife-solo/bootstraps/darwin.rb
knife-solo-0.5.0 lib/knife-solo/bootstraps/darwin.rb
knife-solo-0.4.2 lib/knife-solo/bootstraps/darwin.rb