redirus 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +4 -0
- data/Gemfile.lock +1 -1
- data/lib/redirus/cli.rb +8 -0
- data/lib/redirus/server_cli.rb +7 -0
- data/lib/redirus/version.rb +1 -1
- data/lib/redirus/worker.rb +0 -14
- 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: 21f7c960905cd51f387ec478fc35044880d4b325
|
4
|
+
data.tar.gz: a011bc663faa9ae72155fb39f9f7b574a2d0e554
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5090dc2adfc2b6ea8c669637b1ae4124406c4b7e0fabb02340c18a52e74081d02368a5021ef8a30c6438b90c46171e340ccee3881d7a665f0a5ab8eb3b811fd3
|
7
|
+
data.tar.gz: 589e89200c73ab610f4400fd3970f27b9fc1cccd9212b8bf92058e92517fa8abbc74347e9acf59813793db458edb22e951bfd203e907da4ed18f3130dac19605
|
data/CHANGELOG
CHANGED
data/Gemfile.lock
CHANGED
data/lib/redirus/cli.rb
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
require 'optparse'
|
2
2
|
require 'singleton'
|
3
3
|
|
4
|
+
Sidekiq.configure_client do |c|
|
5
|
+
c.redis = {
|
6
|
+
namespace: Redirus.config.namespace,
|
7
|
+
url: Redirus.config.redis_url
|
8
|
+
}
|
9
|
+
end
|
10
|
+
|
4
11
|
module Redirus
|
5
12
|
class CLI
|
6
13
|
include Singleton
|
@@ -79,6 +86,7 @@ module Redirus
|
|
79
86
|
{
|
80
87
|
config_path: 'config.yml',
|
81
88
|
type: :http,
|
89
|
+
action: :add,
|
82
90
|
queue: Redirus.config.queues.first
|
83
91
|
}
|
84
92
|
end
|
data/lib/redirus/server_cli.rb
CHANGED
@@ -2,6 +2,13 @@ require 'optparse'
|
|
2
2
|
require 'singleton'
|
3
3
|
require 'sidekiq/cli'
|
4
4
|
|
5
|
+
Sidekiq.configure_server do |config|
|
6
|
+
config.redis = {
|
7
|
+
namespace: Redirus.config.namespace,
|
8
|
+
url: Redirus.config.redis_url
|
9
|
+
}
|
10
|
+
end
|
11
|
+
|
5
12
|
module Redirus
|
6
13
|
class ServerCLI
|
7
14
|
include Singleton
|
data/lib/redirus/version.rb
CHANGED
data/lib/redirus/worker.rb
CHANGED
@@ -5,18 +5,4 @@ module Redirus
|
|
5
5
|
autoload :AddProxy, 'redirus/worker/add_proxy'
|
6
6
|
autoload :RmProxy, 'redirus/worker/rm_proxy'
|
7
7
|
end
|
8
|
-
end
|
9
|
-
|
10
|
-
Sidekiq.configure_server do |config|
|
11
|
-
config.redis = {
|
12
|
-
namespace: Redirus.config.namespace,
|
13
|
-
url: Redirus.config.redis_url
|
14
|
-
}
|
15
|
-
end
|
16
|
-
|
17
|
-
Sidekiq.configure_client do |c|
|
18
|
-
c.redis = {
|
19
|
-
namespace: Redirus.config.namespace,
|
20
|
-
url: Redirus.config.redis_url
|
21
|
-
}
|
22
8
|
end
|