Class: Myosx::Exec
Instance Method Summary collapse
-
#initialize ⇒ Exec
constructor
A new instance of Exec.
Methods inherited from Config
#config_file, #create_workspace, #global, #workspace_directory
Constructor Details
#initialize ⇒ Exec
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 Config.new.create_workspace(Config.new.workspace_directory) unless system("which brew >/dev/null 2>&1") puts "Error: can't find homebrew in PATH." exit end if Config.new.global['dotfiles'] Dotfiles.new.exec end if Config.new.global['homebrew'] Homebrew.new.exec end if Config.new.global['rbenv'] Rbenv.new.exec end end |