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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/hak +4 -4
  3. data/lib/hak/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e9104736339343cd34a3ebdf408f66bfad851f2a
4
- data.tar.gz: 159accc21f084a6aa0a4db459992cd7aa1950e8d
3
+ metadata.gz: 137e578fe025758d8c287f1d038445c005605cd5
4
+ data.tar.gz: 7b6a2d981f6e083f53728bd98c3b6000c3b798f8
5
5
  SHA512:
6
- metadata.gz: ac9bc07b4e302313d1650e914d76b3422db70dc4df3b34248e9465d09093a570fd8a6105c6c81f57c990a6411d2db0a6f30c9c7d4d3b4d1e0ea0707c2a89fb5a
7
- data.tar.gz: bc98ebb9e5485cf7eab5c5e937eba1c71f3f330101891c740e780ee53554bf2a368584b4e016ce459725874f4a70ae5be1f06fdd2f2ada467decb56cab498fcc
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.2'
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('~/.dinghy'))
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 :destroy do |c|
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
@@ -1,3 +1,3 @@
1
1
  module Hak
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hak
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - jaequery