shred 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3ebc646e30059b1b213e40852da3996c35fc4ea0
4
- data.tar.gz: 9db8cfd8a2899f6084bc4d5796f8de6772dc6ff7
3
+ metadata.gz: 775369f38e6bd298fe27b872674df05bca3d81f7
4
+ data.tar.gz: af19387480d59824f28a87534781f2ff48c724c9
5
5
  SHA512:
6
- metadata.gz: 77cc7cd9d43dcdf9981567c0156ab8b593355bc1a9218ed11194189c45df8875b566ae4659f9eebfd00f2c9281029385770231b8b14b53c4000033569099fa2d
7
- data.tar.gz: f74ceb2db0ff64d82c6c82f563c1cf516a5aef0b9171ad998ad34df4946dd3bd1fc4f45814f175f577da87f0d7168d3c67e9ae55e5995fb6291dc13fe0bd9997
6
+ metadata.gz: 52d4539329068e33cbbb8329fc1635a8625860a8efae3133d16ccb6b6513047fbc0eb3790e9e0738df3768663f49f231d79956995ea078320c305834bd4a6391
7
+ data.tar.gz: d2b099a1e501692753e967f1c9f002efb30f797ce4895023d4aa1b287901988f6ce5fc5be0e9f5f28117f5998a9b1358618f9ca75432d193b7cb06cf4b9efc99
data/lib/shred.rb CHANGED
@@ -83,7 +83,7 @@ module Shred
83
83
  self.class.config['commands']['setup'].each do |(cmd, subcmd)|
84
84
  invoke(cmd.to_sym, [subcmd.to_sym])
85
85
  end
86
- console.say_ok("Setup complete!")
86
+ say_status(:OK, 'Setup complete!', :blue)
87
87
  end
88
88
  end
89
89
  end
data/lib/shred.yml.tt CHANGED
@@ -104,7 +104,7 @@ commands:
104
104
  acl: public_read
105
105
  setup:
106
106
  platform_deps: install
107
- services: start
107
+ services: restart
108
108
  ruby_deps: install
109
109
  js_deps: install
110
110
  db: init
@@ -9,7 +9,7 @@ module Shred
9
9
  LONGDESC
10
10
  def init
11
11
  run_shell_command(ShellCommand.new(
12
- command_lines: 'bin/rake db:create:all db:structure:load',
12
+ command_lines: 'bin/rake db:drop:all db:create:all db:structure:load',
13
13
  success_msg: 'Database initialized',
14
14
  error_msg: 'Database could not be initialized'
15
15
  ))
@@ -27,6 +27,11 @@ module Shred
27
27
  error_msg: "#{sym} could not be stopped"
28
28
  ))
29
29
  end
30
+
31
+ def restart(ctx)
32
+ stop(ctx)
33
+ start(ctx)
34
+ end
30
35
  end
31
36
 
32
37
  class LaunchctlService < Service
@@ -88,6 +93,18 @@ module Shred
88
93
  invoke_for_services(:stop, *services)
89
94
  end
90
95
 
96
+ desc 'restart [services...]', 'Stop and start some or all platform services'
97
+ long_desc <<-LONGDESC
98
+ Stops and then starts platform services that the application uses.
99
+
100
+ When no services are specified, all services are restarted.
101
+
102
+ When one or more services are specified, only those services are restarted.
103
+ LONGDESC
104
+ def restart(*services)
105
+ invoke_for_services(:restart, *services)
106
+ end
107
+
91
108
  no_commands do
92
109
  def configure
93
110
  @supported_services = command_config.each_with_object([]) do |(type, specs), m|
data/lib/shred/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Shred
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shred
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian