capistrano_pm2 0.0.3 → 0.0.4

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: 08bf42b7e9da44c861989a04dbe03d9603e3f504
4
- data.tar.gz: 040fc7f5ed72882bb9a399ac928eb807ca945d31
3
+ metadata.gz: 684c0410237e6bd6c53680f880c5f6a5328ba30c
4
+ data.tar.gz: 66c3b2981a02384288832f3a332d0e9feca494e8
5
5
  SHA512:
6
- metadata.gz: ee44c7ed6c33d1c59d94a74af000d9873d2110182017265df5f0aa632520a8312f8bc31b4f6ff71870f09fc9f5e52279c0f710df3e627b26a0eba7e8990237dc
7
- data.tar.gz: 19e9b5ceff9639db2979181286c8c656afa533031e4dbe54251ba2ff496f221ba6860a707596a1e5b09d0aac1cfb72cee1546045c3d2d3435fa28b78d767fbc8
6
+ metadata.gz: 5e96e5dcff44ccdf8956917aa4da5cc8a4a8ea7e4d87b1215bdf383429dd8b675d1b40ba07700152bacf11071b36db2423ce10fe8c1db50625ebe9615a1bd202
7
+ data.tar.gz: efdb82271ad4e9dac2ad5343402ffef03bb79ded06b06c04c917b221d05244b7ab3b745951b6e5b4a1714f2e788b13ddd684477508d7ad4c5bf118f2ac430be8
data/README.md CHANGED
@@ -38,6 +38,8 @@ With config:
38
38
  `cap pm2:stop # Stop server `
39
39
  `cap pm2:start # Start server `
40
40
  `cap pm2:restart # Restart server `
41
+ `cap pm2:reload # Reload server `
42
+ `cap pm2:reload # Reload server `
41
43
 
42
44
  Without config:
43
45
  `cap pm2:delete[id] # Delete process by id or name`
@@ -46,11 +48,16 @@ Without config:
46
48
  `cap pm2:list # List of processes`
47
49
  `cap pm2:save # Save the processes list`
48
50
  `cap pm2:startup # Startup script`
51
+ `cap pm2:dump # Dump processes`
52
+ `cap pm2:resurrect # Resurrect processes`
53
+ `cap pm2:flush # Flush logs`
54
+ `cap pm2:reload_logs # Reload logs`
55
+ `cap pm2:ping # Ping PM2`
49
56
 
50
57
 
51
58
  ## Contributing
52
59
 
53
- 1. Fork it ( https://github.com/[my-github-username]/capistrano_pm2/fork )
60
+ 1. Fork it ( https://github.com/ne1ro/capistrano_pm2/fork )
54
61
  2. Create your feature branch (`git checkout -b my-new-feature`)
55
62
  3. Commit your changes (`git commit -am 'Add some feature'`)
56
63
  4. Push to the branch (`git push origin my-new-feature`)
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ['neiro']
10
10
  spec.email = ['neiro.mail@gmail.com']
11
11
  spec.summary = 'Capistrano integration for PM2'
12
- spec.description = 'Capistrano integration for node.js \
13
- process manager PM2 '
12
+ spec.description = 'Capistrano integration for node.js
13
+ process manager PM2'
14
14
  spec.homepage = 'https://github.com/ne1ro/capistrano_pm2'
15
15
  spec.license = 'MIT'
16
16
 
@@ -9,6 +9,15 @@ namespace :pm2 do
9
9
  end
10
10
  end
11
11
 
12
+ desc 'Reload server'
13
+ task :reload do
14
+ on roles(:web) do
15
+ within current_path do
16
+ execute :pm2, 'reload', fetch(:pm2_config)
17
+ end
18
+ end
19
+ end
20
+
12
21
  desc 'Stop server'
13
22
  task :stop do
14
23
  on roles(:web) do
@@ -18,6 +27,15 @@ namespace :pm2 do
18
27
  end
19
28
  end
20
29
 
30
+ desc 'Delete server'
31
+ task :delete do
32
+ on roles(:web) do
33
+ within current_path do
34
+ execute :pm2, 'delete', fetch(:pm2_config)
35
+ end
36
+ end
37
+ end
38
+
21
39
  desc 'Start server'
22
40
  task :start do
23
41
  on roles(:web) do
@@ -55,6 +73,48 @@ namespace :pm2 do
55
73
  end
56
74
  end
57
75
 
76
+ desc 'Dump processes'
77
+ task :dump do
78
+ on roles(:web) do
79
+ execute :pm2, 'dump'
80
+ end
81
+ end
82
+
83
+ desc 'Resurrect processes'
84
+ task :resurrect do
85
+ on roles(:web) do
86
+ execute :pm2, 'resurrect'
87
+ end
88
+ end
89
+
90
+ desc 'Flush logs'
91
+ task :flush do
92
+ on roles(:web) do
93
+ execute :pm2, 'flush'
94
+ end
95
+ end
96
+
97
+ desc 'Reload logs'
98
+ task :reload_logs do
99
+ on roles(:web) do
100
+ execute :pm2, 'reloadLogs'
101
+ end
102
+ end
103
+
104
+ desc 'Ping server'
105
+ task :ping do
106
+ on roles(:web) do
107
+ execute :pm2, 'ping'
108
+ end
109
+ end
110
+
111
+ desc 'Update in memory pm2'
112
+ task :update_pm2 do
113
+ on roles(:web) do
114
+ execute :pm2, 'updatePM2'
115
+ end
116
+ end
117
+
58
118
  desc 'Describe process by id or name'
59
119
  task :describe, :id do |_task, args|
60
120
  on roles(:web) do
@@ -1,4 +1,4 @@
1
1
  # Gem version
2
2
  module CapistranoPm2
3
- VERSION = '0.0.3'
3
+ VERSION = '0.0.4'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano_pm2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - neiro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-14 00:00:00.000000000 Z
11
+ date: 2015-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -72,7 +72,9 @@ dependencies:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
74
  version: 0.29.0
75
- description: "Capistrano integration for node.js \\\n process manager PM2 "
75
+ description: |-
76
+ Capistrano integration for node.js
77
+ process manager PM2
76
78
  email:
77
79
  - neiro.mail@gmail.com
78
80
  executables: []