opal-webpack-compile-server 0.1.2 → 0.1.3
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a76268b4de0c31a3c43726fc1ff618d776062163215783b760e38555efa7f7f
|
4
|
+
data.tar.gz: '02668868a3757767670f1d895942f27cfaf4391bbf1c39c1881e7131f840583f'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcdf928edb0879625ff0543de03f92680b4868714953131f6640d7d5ee237ea1744e92123fd69408c124a652501fae468aaf4a8a939fc497a2d0514dff418764
|
7
|
+
data.tar.gz: e843216e4b97c207f67b849c6bdce1d5303fd4d7870fab52887306f8c870c2e77e60042dc1c382654c6ade94f58c7433f09d269920a390bce732f4c6a09e3e40
|
@@ -3,9 +3,7 @@ require 'opal-webpack-compile-server/exe'
|
|
3
3
|
require 'opal-webpack-compile-server/version'
|
4
4
|
|
5
5
|
if ARGV[0] == 'kill'
|
6
|
-
puts "Killing OWL Compile Server"
|
7
6
|
OpalWebpackCompileServer::Exe.kill
|
8
7
|
else
|
9
|
-
puts "Starting OWL Compile Server"
|
10
8
|
OpalWebpackCompileServer::Exe.run
|
11
9
|
end
|
@@ -113,6 +113,7 @@ module OpalWebpackCompileServer
|
|
113
113
|
|
114
114
|
def self.kill
|
115
115
|
if File.exist?(OWCS_SOCKET_PATH)
|
116
|
+
puts 'Killing Opal Webpack Compile Server'
|
116
117
|
dont_unlink_on_exit
|
117
118
|
s = UNIXSocket.new(OWCS_SOCKET_PATH)
|
118
119
|
s.send("command:kill\n", 0)
|
@@ -123,7 +124,7 @@ module OpalWebpackCompileServer
|
|
123
124
|
|
124
125
|
def self.run
|
125
126
|
if File.exist?(OWCS_SOCKET_PATH) # OWCS already running
|
126
|
-
puts
|
127
|
+
puts 'Another Opal Webpack Compile Server already running, exiting'
|
127
128
|
dont_unlink_on_exit
|
128
129
|
exit(1)
|
129
130
|
else
|
@@ -131,6 +132,7 @@ module OpalWebpackCompileServer
|
|
131
132
|
load_paths = OpalWebpackCompileServer::LoadPathManager.get_load_paths
|
132
133
|
if load_paths
|
133
134
|
Opal.append_paths(*load_paths)
|
135
|
+
puts 'Starting Opal Webpack Compile Server'
|
134
136
|
Process.daemon(true)
|
135
137
|
EventMachine.run do
|
136
138
|
EventMachine.start_unix_domain_server(OWCS_SOCKET_PATH, OpalWebpackCompileServer::Compiler)
|