mina-infinum 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/mina/infinum/helpers.rb +1 -1
- data/lib/mina/infinum/tasks.rb +8 -1
- data/lib/mina/infinum/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ab45ac94d6e41c20b419da56c0eeb9ad4b5bc60
|
4
|
+
data.tar.gz: e2fd69397378b0a92bb78c2a98a445249cefbefc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4f4c7cee40ad1e88a8c72591c800e4dec7a7b81cb664a701aa63613d66946416243230cd5401783f9aaeb7c4837a08f6f85be6bf072e6c5081e72b9e896e658
|
7
|
+
data.tar.gz: a10a060d4d3e193c3e8ee6f5bed9c375f6d20ab790773aeaa6ca05624e2534de9860c60c23fb71cd545591f89ffd47c370bf51e035adde8daad7ed32ef764ab6
|
data/README.md
CHANGED
@@ -11,12 +11,12 @@ For `mina 0.3.0` please take a look at [v0.3.0 branch](https://github.com/infinu
|
|
11
11
|
```
|
12
12
|
|
13
13
|
Removed mina-delayed_job as we are moving towards delayed_job in processes.
|
14
|
-
|
14
|
+
github
|
15
15
|
## Setup
|
16
16
|
|
17
17
|
``` ruby
|
18
|
-
set :application_name
|
19
|
-
set :background_worker # Used in background workers tasks
|
18
|
+
set :application_name # Used in background workers tasks
|
19
|
+
set :background_worker, 'dj' # Used in background workers tasks (Default: 'dj')
|
20
20
|
```
|
21
21
|
|
22
22
|
Background workers name:
|
data/lib/mina/infinum/helpers.rb
CHANGED
data/lib/mina/infinum/tasks.rb
CHANGED
@@ -5,10 +5,17 @@ task :restart_application do
|
|
5
5
|
end
|
6
6
|
|
7
7
|
namespace :background_workers do
|
8
|
-
[:
|
8
|
+
[:start, :stop, :status].each do |state|
|
9
9
|
desc "#{state.capitalize}ing background workers"
|
10
10
|
task state do
|
11
11
|
background_worker(state)
|
12
12
|
end
|
13
13
|
end
|
14
|
+
|
15
|
+
desc 'Restarting backgrond workers'
|
16
|
+
task :restart do
|
17
|
+
comment "Restarting #{background_worker_name}"
|
18
|
+
command %(sudo stop #{background_worker_name} > /dev/null 2>&1)
|
19
|
+
command %(sudo start #{background_worker_name})
|
20
|
+
end
|
14
21
|
end
|
data/lib/mina/infinum/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mina-infinum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stjepan Hadjic
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|