hak 0.3.2 → 0.3.3
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 +4 -4
- 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: 137e578fe025758d8c287f1d038445c005605cd5
|
|
4
|
+
data.tar.gz: 7b6a2d981f6e083f53728bd98c3b6000c3b798f8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 226f5a513f3f4f120a9f766fdda6ee831129615dbfc0d649cfc89b7281c3fa32d21bee904dca8fe9bec98d9081c96e8debe28f22a59a316a5e5575bfc775cd46
|
|
7
|
+
data.tar.gz: 82a610852300babbccda0d82325f1f19c99e17f085dac58606b671716ff5c202ba1c9fe56fbbd407677d88a1644174356c3db2ab000bf52d4354fbd9000a69d4
|
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.3'
|
|
10
10
|
program :description, 'Hak - start hacking!'
|
|
11
11
|
|
|
12
12
|
default_command :help
|
|
@@ -92,13 +92,12 @@ command :on do |c|
|
|
|
92
92
|
c.action do |args, options|
|
|
93
93
|
|
|
94
94
|
# if ~/.hak not exists, initialize it
|
|
95
|
-
if !Dir.exists?(File.expand_path('~/.
|
|
95
|
+
if !Dir.exists?(File.expand_path('~/.hak'))
|
|
96
96
|
system "mkdir -p ~/.hak/packages"
|
|
97
97
|
end
|
|
98
98
|
|
|
99
99
|
# if ~/.dinghy not exists, initialize it
|
|
100
100
|
if !Dir.exists?(File.expand_path('~/.dinghy'))
|
|
101
|
-
system "mkdir ~/.hak"
|
|
102
101
|
|
|
103
102
|
# remove existing docker
|
|
104
103
|
system "brew upgrade docker docker-machine"
|
|
@@ -106,6 +105,7 @@ command :on do |c|
|
|
|
106
105
|
system "brew install dinghy"
|
|
107
106
|
system "brew install docker docker-machine wget"
|
|
108
107
|
system "brew install docker-machine-driver-xhyve"
|
|
108
|
+
system "dinghy create --provider xhyve"
|
|
109
109
|
system "sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve"
|
|
110
110
|
system "sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve"
|
|
111
111
|
|
|
@@ -128,7 +128,7 @@ command :off do |c|
|
|
|
128
128
|
end
|
|
129
129
|
end
|
|
130
130
|
|
|
131
|
-
command :
|
|
131
|
+
command :uninstall do |c|
|
|
132
132
|
c.syntax = 'hak destroy'
|
|
133
133
|
c.summary = 'destroys hak server'
|
|
134
134
|
c.description = 'shuts off and destroys the hak server'
|
data/lib/hak/version.rb
CHANGED