class Myosx::Exec

Public Class Methods

new() click to toggle source
# File lib/myosx.rb, line 9
def initialize
  Konfig.new.create_workspace(Konfig.new.workspace_directory)

  unless system("which brew >/dev/null 2>&1")
    puts "Error: can't find homebrew in PATH."
    exit
  end

  if Konfig.new.global['dotfiles']
    Dotfiles.new.exec
  end

  if Konfig.new.global['homebrew']
    Homebrew.new.exec
  end

  if Konfig.new.global['rbenv']
    Rbenv.new.exec
  end
end