File tree Expand file tree Collapse file tree 2 files changed +35
-1
lines changed
Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Original file line number Diff line number Diff line change 1+
2+ # temporary Gunfile for plugins development on OS X.
3+ # curious to use it yourself?
4+ # https://github.com/gliderlabs/glidergun
5+
6+ init() {
7+ cmd-export build
8+ cmd-export push
9+ cmd-export restore
10+ cmd-export backup
11+ }
12+
13+ build() {
14+ make BINDDIR=.
15+ }
16+
17+ push() {
18+ cat bundles/1.5.0-plugins/binary/docker-1.5.0-plugins \
19+ | boot2docker ssh "cat > docker"
20+ boot2docker ssh "
21+ chmod +x ./docker
22+ mv ./docker /usr/local/bin/docker
23+ sudo /etc/init.d/docker restart
24+ "
25+ }
26+
27+ backup() {
28+ boot2docker ssh "cp /usr/local/bin/docker /usr/local/bin/docker.backup"
29+ }
30+
31+ restore() {
32+ boot2docker ssh "cp /usr/local/bin/docker.backup /usr/local/bin/docker"
33+ boot2docker ssh "sudo /etc/init.d/docker restart"
34+ }
Original file line number Diff line number Diff line change 1- 1.5.0
1+ 1.5.0-plugins
You can’t perform that action at this time.
0 commit comments