lib/myosx.rb in myosx-0.2.1 vs lib/myosx.rb in myosx-0.2.2
- old
+ new
@@ -3,14 +3,23 @@
require "myosx/dotfiles"
require "myosx/homebrew"
require "myosx/rbenv"
module Myosx
- class Bootstrap
+ class Exec < Config
def initialize
Config.new.create_workspace
- Dotfiles.new.exec
- Homebrew.new.exec
- Rbenv.new.exec
+
+ if $global_config['dotfiles']
+ Dotfiles.new.exec
+ end
+
+ if $global_config['homebrew']
+ Homebrew.new.exec
+ end
+
+ if $global_config['rbenv']
+ Rbenv.new.exec
+ end
end
end
end