Skip to content

Commit 76f0fbd

Browse files
committedJan 29, 2017
Add the rest of the stuff to do the stuff
1 parent 4d1f89b commit 76f0fbd

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed
 

‎scripts/install

+15-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env ruby
22

33
DOT_HOME = ENV['HOME'].freeze
4+
DOT_LOCATION = "#{DOT_HOME}/.dot".freeze
45
DOT_SUDO = (`which sudo` || ENV['SUDO'] || `/usr/bin/sudo`).freeze
56
DOT_NULL = '/dev/null'.freeze
67

@@ -89,6 +90,18 @@ puts "kotct/dot Installation Script (v0.0.0)"
8990
puts
9091
puts " This script will help you install kotct/dot on your computer."
9192

92-
# Go ahead and clone Dot
93+
# Go ahead and clone Dot into a directory.
9394
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

0 commit comments

Comments
 (0)
Please sign in to comment.