shred 0.0.8 → 0.0.9
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/lib/shred.rb +1 -1
- data/lib/shred.yml.tt +1 -1
- data/lib/shred/commands/db.rb +1 -1
- data/lib/shred/commands/services.rb +17 -0
- data/lib/shred/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: 775369f38e6bd298fe27b872674df05bca3d81f7
|
4
|
+
data.tar.gz: af19387480d59824f28a87534781f2ff48c724c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52d4539329068e33cbbb8329fc1635a8625860a8efae3133d16ccb6b6513047fbc0eb3790e9e0738df3768663f49f231d79956995ea078320c305834bd4a6391
|
7
|
+
data.tar.gz: d2b099a1e501692753e967f1c9f002efb30f797ce4895023d4aa1b287901988f6ce5fc5be0e9f5f28117f5998a9b1358618f9ca75432d193b7cb06cf4b9efc99
|
data/lib/shred.rb
CHANGED
data/lib/shred.yml.tt
CHANGED
data/lib/shred/commands/db.rb
CHANGED
@@ -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