hak 0.3.1 → 0.3.2
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/bin/hak +19 -5
- data/lib/hak/version.rb +1 -1
- 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: e9104736339343cd34a3ebdf408f66bfad851f2a
|
|
4
|
+
data.tar.gz: 159accc21f084a6aa0a4db459992cd7aa1950e8d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ac9bc07b4e302313d1650e914d76b3422db70dc4df3b34248e9465d09093a570fd8a6105c6c81f57c990a6411d2db0a6f30c9c7d4d3b4d1e0ea0707c2a89fb5a
|
|
7
|
+
data.tar.gz: bc98ebb9e5485cf7eab5c5e937eba1c71f3f330101891c740e780ee53554bf2a368584b4e016ce459725874f4a70ae5be1f06fdd2f2ada467decb56cab498fcc
|
data/bin/hak
CHANGED
|
@@ -6,7 +6,7 @@ require 'yaml'
|
|
|
6
6
|
require 'pp'
|
|
7
7
|
|
|
8
8
|
program :name, 'hakberry'
|
|
9
|
-
program :version, '0.3.
|
|
9
|
+
program :version, '0.3.2'
|
|
10
10
|
program :description, 'Hak - start hacking!'
|
|
11
11
|
|
|
12
12
|
default_command :help
|
|
@@ -86,7 +86,7 @@ end
|
|
|
86
86
|
|
|
87
87
|
command :on do |c|
|
|
88
88
|
c.syntax = 'hak on'
|
|
89
|
-
c.summary = 'powers on the
|
|
89
|
+
c.summary = 'powers on the hak server'
|
|
90
90
|
c.description = 'sets up the entire docker based environment along with proxy'
|
|
91
91
|
c.example 'description', 'hak on'
|
|
92
92
|
c.action do |args, options|
|
|
@@ -101,7 +101,7 @@ command :on do |c|
|
|
|
101
101
|
system "mkdir ~/.hak"
|
|
102
102
|
|
|
103
103
|
# remove existing docker
|
|
104
|
-
system "brew
|
|
104
|
+
system "brew upgrade docker docker-machine"
|
|
105
105
|
system "brew tap codekitchen/dinghy"
|
|
106
106
|
system "brew install dinghy"
|
|
107
107
|
system "brew install docker docker-machine wget"
|
|
@@ -120,14 +120,27 @@ end
|
|
|
120
120
|
|
|
121
121
|
command :off do |c|
|
|
122
122
|
c.syntax = 'hak off'
|
|
123
|
-
c.summary = 'shuts off
|
|
124
|
-
c.description = 'shuts off the
|
|
123
|
+
c.summary = 'shuts off hak server'
|
|
124
|
+
c.description = 'shuts off the hak server'
|
|
125
125
|
c.example 'description', 'hak off'
|
|
126
126
|
c.action do |args, options|
|
|
127
127
|
system "dinghy halt"
|
|
128
128
|
end
|
|
129
129
|
end
|
|
130
130
|
|
|
131
|
+
command :destroy do |c|
|
|
132
|
+
c.syntax = 'hak destroy'
|
|
133
|
+
c.summary = 'destroys hak server'
|
|
134
|
+
c.description = 'shuts off and destroys the hak server'
|
|
135
|
+
c.example 'description', 'hak destroy'
|
|
136
|
+
c.action do |args, options|
|
|
137
|
+
system "dinghy halt"
|
|
138
|
+
system "dinghy destroy"
|
|
139
|
+
system "rm -rf ~/.hak"
|
|
140
|
+
system "rm -rf ~/.dinghy"
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
|
|
131
144
|
command :up do |c|
|
|
132
145
|
c.syntax = 'hak up'
|
|
133
146
|
c.summary = 'starts up site'
|
|
@@ -184,4 +197,5 @@ command :ssh do |c|
|
|
|
184
197
|
end
|
|
185
198
|
|
|
186
199
|
end
|
|
200
|
+
|
|
187
201
|
end
|
data/lib/hak/version.rb
CHANGED