Sha256: c500dbf399710cf9cc30137eedfe0545d702dd6ae83e8cc01529df815c53ab19

Contents?: true

Size: 327 Bytes

Versions: 5

Compression:

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
knife-solo-0.7.0 lib/knife-solo/bootstraps/darwin.rb
knife-solo-0.7.0.pre3 lib/knife-solo/bootstraps/darwin.rb
knife-solo-0.7.0.pre2 lib/knife-solo/bootstraps/darwin.rb
knife-solo-0.7.0.pre lib/knife-solo/bootstraps/darwin.rb
knife-solo-0.6.0 lib/knife-solo/bootstraps/darwin.rb