Sha256: aa5ad383d8011fb4b1798f4214743e7c0309f1bcfb2f24aae3d69848b6545604

Contents?: true

Size: 320 Bytes

Versions: 6

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-8]}
        {:type => 'omnibus'}
      else
        raise "OS X version #{issue} not supported"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
knife-solo-0.4.1 lib/knife-solo/bootstraps/darwin.rb
knife-solo-0.4.0 lib/knife-solo/bootstraps/darwin.rb
knife-solo-0.3.0 lib/knife-solo/bootstraps/darwin.rb
knife-solo-0.3.0.pre5 lib/knife-solo/bootstraps/darwin.rb
knife-solo-0.3.0.pre4 lib/knife-solo/bootstraps/darwin.rb
knife-solo-0.3.0.pre3 lib/knife-solo/bootstraps/darwin.rb