This repository has been archived by the owner on Jul 1, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathicelab.rb
60 lines (48 loc) · 1.6 KB
/
icelab.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# A bootstrapping dep for first-time installs. This prepares the shell
# environment for the rest of the deps to run.
dep "workstation bootstrapped" do
# Install the version managers
requires "icelab:rbenv", "icelab:ruby-build"
requires "nodenv"
# Bring in the Icelab dotfiles, which includes zsh config to initialize the
# version managers
requires "dotfiles"
# And set the shell to zsh, so this config can take effect
requires "shell".with :shell_name => "zsh"
after {
message = word_wrap("The environment is bootstrapped. If this is your first installation, open a new shell and run \"babushka icelab:workstation\" to continue.")
log "*"*80, :as => :warning
log message, :as => :warning
log "*"*80, :as => :warning
}
# Thanks, ActionView
def word_wrap(text, options = {})
line_width = options.fetch(:line_width, 80)
text.split("\n").collect! do |line|
line.length > line_width ? line.gsub(/(.{1,#{line_width}})(\s+|$)/, "\\1\n").strip : line
end * "\n"
end
end
dep "workstation" do
requires "workstation bootstrapped"
# General homebrew packages
requires "docker.cask"
requires "imagemagick.managed"
# Disable heroku until
# requires "heroku.managed"
requires "overmind.managed"
#requires "phantomjs.managed"
requires "tmux.managed"
requires "yarn"
# Ruby
requires "ruby 2.5.1"
requires "global ruby version".with "2.5.1"
# Global gems
# requires "git-smart.gem"
# requires "raygun.gem"
# Node
# requires "node 6.10.0"
# requires "global node version".with "6.10.0"
# Global node packages
# requires "coffee-script.npm"
end