rebuild 0.3.0.pre4 → 0.3.0.pre5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/rebuild/cli.rb +7 -7
- data/lib/rebuild/version.rb +1 -1
- data/script/homebrew.sh +13 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6161afdde04d0d5d60cbb516c75077f64e92bded
|
|
4
|
+
data.tar.gz: 3434b7edf57d9af33ad2928cc423c32fac071747
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5c8d66e41d398ef97fead86dbed4077ff66196871360a429a3d0de9d9db18f2599093ac96cafbc0254e3b62dfcf9bc71b494c8634a170516d84894b58677215c
|
|
7
|
+
data.tar.gz: fb18e47360c6919b5108ad97d24824a872280a3eef0565d53c9a8603d4db4ad07188a28e80c84124bfb1bad9cb928c144d0a9c6bc827e07de39d6a03bc2b9cb3
|
data/lib/rebuild/cli.rb
CHANGED
|
@@ -63,16 +63,16 @@ module Rebuild
|
|
|
63
63
|
end
|
|
64
64
|
|
|
65
65
|
def show_usage
|
|
66
|
-
puts unindent(<<-EOS)
|
|
66
|
+
puts unindent(<<-EOS) # <- 80 columns
|
|
67
67
|
Commands:
|
|
68
|
-
rebuild
|
|
69
|
-
rebuild USER/PROJECT
|
|
70
|
-
rebuild brew
|
|
68
|
+
rebuild install command line tools, done
|
|
69
|
+
rebuild USER/PROJECT execute all scripts in GitHub repo's root directory
|
|
70
|
+
rebuild brew start homebrew installation and press ENTER for you
|
|
71
71
|
|
|
72
72
|
Options:
|
|
73
|
-
-f, [--force-update]
|
|
74
|
-
-d, [--directory=/path/to/clone]
|
|
75
|
-
-s, [--scriptdir=/script/placed/dir]
|
|
73
|
+
-f, [--force-update] By default, git pull is not executed
|
|
74
|
+
-d, [--directory=/path/to/clone] Default: /tmp/USER/PROJECT
|
|
75
|
+
-s, [--scriptdir=/script/placed/dir] Default: '' (root)
|
|
76
76
|
|
|
77
77
|
EOS
|
|
78
78
|
end
|
data/lib/rebuild/version.rb
CHANGED
data/script/homebrew.sh
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
|
+
echo -n "Password: "
|
|
4
|
+
|
|
5
|
+
stty -echo
|
|
6
|
+
read password
|
|
7
|
+
stty echo
|
|
8
|
+
|
|
3
9
|
install_url=https://raw.githubusercontent.com/Homebrew/install/master/install
|
|
4
10
|
temp_script=/tmp/brew_installer
|
|
11
|
+
|
|
12
|
+
# FIXME: This is not intended saving. I don't know how to spawn: ruby -e "$(..)"
|
|
5
13
|
curl -fsSL $install_url > $temp_script
|
|
6
14
|
|
|
7
15
|
expect -c '
|
|
@@ -14,6 +22,11 @@ expect {
|
|
|
14
22
|
send "\r"
|
|
15
23
|
exp_continue
|
|
16
24
|
}
|
|
25
|
+
"Password:"
|
|
26
|
+
{
|
|
27
|
+
send "$password\r"
|
|
28
|
+
exp_continue
|
|
29
|
+
}
|
|
17
30
|
}
|
|
18
31
|
'
|
|
19
32
|
|