hak 0.3.9 → 0.4.0

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 +22 -11
  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: 1f0256602f85d9b367bd3d8c938bc696b5514eca
4
- data.tar.gz: 9b598bfa48f929ff5c7908a84e899fff597303c5
3
+ metadata.gz: ef8f2d427f29a8b74687d2af39d0c74b64325313
4
+ data.tar.gz: e1a059807866443ee9be6d13ad36b162721feb4f
5
5
  SHA512:
6
- metadata.gz: eab84cd52e3aea6b7b532f48ac9532b740c479a4f66cef0c7d87fb7cdf836da6df7851e5f0eef0166b251256e2fa66c33b4653248aaea2c42eb72b08cf6cee0e
7
- data.tar.gz: 9aff8b01c8160ab5fb0696719904a474a46dfe3ca1f2d60346a9cceb429fb0ff8ec651efd0dda6d839ba366b98bb3f57468791e37c8ebdbb6923cb4dd65b051d
6
+ metadata.gz: 2f562cdaaa2ee1a06e2055cf3a43c249b3daa942cd2f6c18abecbf18c2ca7759e64e7954120594b7b8f09c65c458736bd134d6f2b2d380899cacd9afce747e17
7
+ data.tar.gz: dafed174048dababcc94eec4d12a2d7531bbeadcc2d10dadbbb843512bd1a5f05ae32ff2e130d09608ca5ffcc298a57f715dda71732acb6ebdc59819449a185e
data/bin/hak CHANGED
@@ -6,7 +6,7 @@ require 'yaml'
6
6
  require 'colorize'
7
7
 
8
8
  program :name, 'hak'
9
- program :version, '0.3.9'
9
+ program :version, '0.4.0'
10
10
  program :description, 'Hak - start hacking!'
11
11
 
12
12
  default_command :help
@@ -183,33 +183,44 @@ end
183
183
 
184
184
 
185
185
 
186
- command :up do |c|
187
- c.syntax = 'hak up'
186
+ command :start do |c|
187
+ c.syntax = 'hak start'
188
188
  c.summary = 'starts up site'
189
189
  c.description = 'this starts up the website'
190
- c.example 'description', 'hak up'
190
+ c.example 'description', 'hak start'
191
191
  c.action do |args, options|
192
- run "docker-compose up -d && docker-compose logs"
192
+ run "docker-compose up -d && docker-compose logs -f"
193
193
  end
194
194
  end
195
195
 
196
- command :down do |c|
197
- c.syntax = 'hak down'
198
- c.summary = 'turn site down'
199
- c.description = 'turns the site down'
200
- c.example 'description', 'hak down'
196
+ command :stop do |c|
197
+ c.syntax = 'hak stop'
198
+ c.summary = 'stops site'
199
+ c.description = 'stops the site'
200
+ c.example 'description', 'hak stop'
201
201
  c.action do |args, options|
202
202
  run "docker-compose stop"
203
203
  end
204
204
  end
205
205
 
206
+ command :restart do |c|
207
+ c.syntax = 'hak restart'
208
+ c.summary = 'restarts site'
209
+ c.description = 'restarts the site'
210
+ c.example 'description', 'hak restart'
211
+ c.action do |args, options|
212
+ run "docker-compose stop"
213
+ run "docker-compose up -d && docker-compose logs -f"
214
+ end
215
+ end
216
+
206
217
  command :logs do |c|
207
218
  c.syntax = 'hak logs'
208
219
  c.summary = 'shows the application logs'
209
220
  c.description = ''
210
221
  c.example 'description', 'hak logs'
211
222
  c.action do |args, options|
212
- run "docker-compose logs"
223
+ run "docker-compose logs -f"
213
224
  end
214
225
  end
215
226
 
data/lib/hak/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Hak
2
- VERSION = "0.3.9"
2
+ VERSION = "0.4.0"
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.9
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - jaequery