GitHub
e65c5c15

matschaffer/knife-solo

A

KnifeSolo::Bootstraps::Darwin

Updated about 1 month ago.
8
Complexity
3.9
Complexity / M
0
Duplication
1
Churn
17
Lines
15
Lines of Code
2
Methods
8
LOC / Method

No issues to see here. Woot.

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