Class: Myosx::Exec

Inherits:
Object
  • Object
show all
Defined in:
lib/myosx.rb

Instance Method Summary collapse

Constructor Details

#initializeExec

Returns a new instance of Exec.



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# 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