mina-infinum 1.1.4 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +6 -3
- data/lib/mina/infinum/tasks.rb +11 -0
- data/lib/mina/infinum/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0deead416b164b0a25cddb51f997e75f8c32048738d8d85c5ff720a2e37a3e5d
|
4
|
+
data.tar.gz: 5b77efff55331661944c8153971c7bcd5eec89718484aa7182739441419232ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d108ff3c8084a8d6e756d599636ea01de8fc901bb049382b71c1c5dfeb7add08f2a32f5d693ff2f3051b5bf86df405602d194c07e28e024e5a063a52624a970b
|
7
|
+
data.tar.gz: 7558fa44c5b544b6bc9ac13a2eac212231bfb4cb17a2d950b353192a0c88bb64fdc29c368fe7865a9212db52cdbb6e76d9dea8671a111c2b1e3bceafdf6c06ca
|
data/README.md
CHANGED
@@ -12,11 +12,13 @@ For `mina 0.3.0` please take a look at [v0.3.0 branch](https://github.com/infinu
|
|
12
12
|
|
13
13
|
Removed mina-delayed_job as we are moving towards delayed_job in processes.
|
14
14
|
github
|
15
|
+
|
15
16
|
## Setup
|
16
17
|
|
17
18
|
``` ruby
|
18
|
-
set :application_name, <APP_NAME>
|
19
|
-
set :background_worker, <WORKER_NAME>
|
19
|
+
set :application_name, <APP_NAME> # Used in background workers tasks
|
20
|
+
set :background_worker, <WORKER_NAME> # Used in background workers tasks (eg. 'dj')
|
21
|
+
set :publish_api_path, <PUBLIC API PATH> # Used in publish api docs tasks(eg. 'api/v1/docs')
|
20
22
|
```
|
21
23
|
|
22
24
|
Background workers name:
|
@@ -28,7 +30,8 @@ Background workers name:
|
|
28
30
|
## Tasks
|
29
31
|
|
30
32
|
``` ruby
|
31
|
-
:restart_application
|
33
|
+
:restart_application # restart passenger
|
34
|
+
:publish_api_doc # Publish dox to the server
|
32
35
|
:'background_workers:restart'
|
33
36
|
:'background_workers:start'
|
34
37
|
:'background_workers:stop'
|
data/lib/mina/infinum/tasks.rb
CHANGED
@@ -18,3 +18,14 @@ namespace :background_workers do
|
|
18
18
|
command %(sudo stop #{background_worker_name} > /dev/null 2>&1; sudo start #{background_worker_name})
|
19
19
|
end
|
20
20
|
end
|
21
|
+
|
22
|
+
task :publish_api_doc do
|
23
|
+
ensure!(:publish_api_path)
|
24
|
+
run(:remote) do
|
25
|
+
command "mkdir -p #{fetch(:current_path)}/public/#{fetch(:publish_api_path)}"
|
26
|
+
end
|
27
|
+
|
28
|
+
run(:local) do
|
29
|
+
command "scp -P #{fetch(:port)} public/#{fetch(:publish_api_path)}/index.html #{fetch(:user)}@#{fetch(:domain)}:#{fetch(:current_path)}/public/#{fetch(:publish_api_path)}"
|
30
|
+
end
|
31
|
+
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.
|
4
|
+
version: 1.2.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:
|
11
|
+
date: 2018-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
151
|
version: '0'
|
152
152
|
requirements: []
|
153
153
|
rubyforge_project:
|
154
|
-
rubygems_version: 2.
|
154
|
+
rubygems_version: 2.7.3
|
155
155
|
signing_key:
|
156
156
|
specification_version: 4
|
157
157
|
summary: Collection of mina plugins we use in infinum
|