forked from zammad/zammad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspring.rb
44 lines (36 loc) · 793 Bytes
/
spring.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
%w[
.ruby-version
.rbenv-vars
tmp/restart.txt
tmp/caching-dev.txt
].each { |path| Spring.watch(path) }
module Spring
module Commands
class SchedulerRb
def call
load ::Rails.root.join('script/scheduler.rb')
end
end
Spring.register_command 'scheduler.rb', Spring::Commands::SchedulerRb.new
end
end
module Spring
module Commands
class WebsocketServerRb
def call
load ::Rails.root.join('script/websocket-server.rb')
end
end
Spring.register_command 'websocket-server.rb', Spring::Commands::WebsocketServerRb.new
end
end
module Spring
module Commands
class RailsServer < Rails
def command_name
'server'
end
end
Spring.register_command 'rails_server', RailsServer.new
end
end