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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 487a801e93aad9760392da5d47f636d5516b7558
4
- data.tar.gz: 192045df7f2206f02bf0c32cc6c90b4da1e0aab5
3
+ metadata.gz: 0ab45ac94d6e41c20b419da56c0eeb9ad4b5bc60
4
+ data.tar.gz: e2fd69397378b0a92bb78c2a98a445249cefbefc
5
5
  SHA512:
6
- metadata.gz: 4cb211d0ab294636ed25a1e7df6c002df021264b94b1afa55d008f80d3cf23ab9b4b1dde2424a6d232f6e86d18e13bd55110cea349985edce1d9295e4bcbfd00
7
- data.tar.gz: bef075b2c781a5b0c6c4ffbc07399b9cbafc2d24f501416cf1f11aa1de9aff9a243166a091c1876ff70418b1408ce774e6206f54359b970d87b7f84355de6e6e
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 # Used in background workers tasks
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:
@@ -1,7 +1,7 @@
1
1
  def background_worker(state)
2
2
  ensure!(:background_worker)
3
3
  ensure!(:application_name)
4
- comment %(Restarting delayed job)
4
+ comment %(#{state}ing #{background_worker_name})
5
5
  command %(sudo #{state} #{background_worker_name})
6
6
  end
7
7
 
@@ -5,10 +5,17 @@ task :restart_application do
5
5
  end
6
6
 
7
7
  namespace :background_workers do
8
- [:restart, :start, :stop, :status].each do |state|
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
@@ -1,5 +1,5 @@
1
1
  module Mina
2
2
  module Infinum
3
- VERSION = '1.0.1'.freeze
3
+ VERSION = '1.1.0'.freeze
4
4
  end
5
5
  end
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.1
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-16 00:00:00.000000000 Z
11
+ date: 2016-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler