-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.rb
36 lines (30 loc) · 1023 Bytes
/
setup.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
require 'logger'
require_relative 'scripts/zsh'
require_relative 'installers/rvm'
require_relative 'installers/hnvm'
require_relative 'installers/xcode'
require_relative 'installers/docker'
require_relative 'installers/homebrew'
require_relative 'installers/oh-my-zsh'
require_relative 'installers/prerequisites'
$version = "0.0.1"
$assistant = "guilty-spark"
$identity = "#{$assistant}@#{$version}"
$log = Logger.new STDOUT
$log.level = Logger::DEBUG
module GuiltySpark
class CLI
def start
$log.info "#{$identity}: Let me set up your machine"
Installers::Xcode.new.ensure_installation
Installers::Homebrew.new.ensure_installation
Installers::Prerequisites.new.ensure_installation
Installers::RVM.new.ensure_installation
Installers::HNVM.new.ensure_installation
Installers::OhMyZsh.new.ensure_installation
Scripts::ZSH.new.ensure_zsh_default_shell
Installers::Docker.new.ensure_installation
end
end
end
GuiltySpark::CLI.new.start