File tree 1 file changed +15
-2
lines changed
1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env ruby
2
2
3
3
DOT_HOME = ENV [ 'HOME' ] . freeze
4
+ DOT_LOCATION = "#{ DOT_HOME } /.dot" . freeze
4
5
DOT_SUDO = ( `which sudo` || ENV [ 'SUDO' ] || `/usr/bin/sudo` ) . freeze
5
6
DOT_NULL = '/dev/null' . freeze
6
7
@@ -89,6 +90,18 @@ puts "kotct/dot Installation Script (v0.0.0)"
89
90
puts
90
91
puts " This script will help you install kotct/dot on your computer."
91
92
92
- # Go ahead and clone Dot
93
+ # Go ahead and clone Dot into a directory.
93
94
ohai "Cloning https://github.com/kotct/dot.git into ~/.dot/"
94
- Kernel . system "git clone https://github.com/kotct/dot.git ~/.dot/"
95
+ Kernel . system "git clone https://github.com/kotct/dot.git #{ DOT_LOCATION } /"
96
+
97
+ # Change directories
98
+ Dir . chdir ( DOT_LOCATION ) do
99
+
100
+ ohai "Running `gem install bundler` and `bundle install`..."
101
+ Kernel . system "gem install bundler"
102
+ Kernel . system "bundle install"
103
+
104
+ ohai "Running `rake install`..."
105
+ Kernel . system "rake install"
106
+
107
+ end
You can’t perform that action at this time.
0 commit comments