luban 0.8.8 → 0.8.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/luban/deployment/cli/command.rb +7 -0
- data/lib/luban/deployment/cli/project.rb +10 -1
- data/lib/luban/deployment/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: f69ca20908081660c8df1151d3de642e93faf8eb
|
4
|
+
data.tar.gz: 549dcf375a340e2c247990a71694958ff8e5e226
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1b38c2d2deb962245497d79b8c83267c2cb725f7b0e3d2ef3c95f892736c4562c4a47bcbfb907a08d597774808ca75abbe81acc5d4a43ce3088c69b76342a63
|
7
|
+
data.tar.gz: f4ace74cdcb381e706bf207b946160927aedd832e79735408fa7137010185ba91c60b12e0e6b0656bc1d7e38e3d676dd6a74e359ddbb3fa6d6fd4722541d5425
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Change log
|
2
2
|
|
3
|
+
## Version 0.8.9 (Sept 28, 2016)
|
4
|
+
|
5
|
+
Minor enhancements:
|
6
|
+
* Added monitoring support for Luban::Deployment::Project
|
7
|
+
|
8
|
+
Bug fixes:
|
9
|
+
* Added descriptions for subcommand groups: provision, control, monitor and crontab
|
10
|
+
|
3
11
|
## Version 0.8.8 (Sept 28, 2016)
|
4
12
|
|
5
13
|
Minor enhancements:
|
@@ -20,6 +20,8 @@ module Luban
|
|
20
20
|
def setup_provision_tasks
|
21
21
|
_self = self
|
22
22
|
command :provision do
|
23
|
+
desc "Run provision tasks"
|
24
|
+
|
23
25
|
task :setup do
|
24
26
|
desc "Setup #{_self.display_name} environment"
|
25
27
|
action! :setup
|
@@ -111,6 +113,8 @@ module Luban
|
|
111
113
|
|
112
114
|
def setup_control_tasks
|
113
115
|
command :control do
|
116
|
+
desc "Run process control tasks"
|
117
|
+
|
114
118
|
task :start do
|
115
119
|
desc "Start process"
|
116
120
|
action! :start_process
|
@@ -162,6 +166,7 @@ module Luban
|
|
162
166
|
|
163
167
|
def setup_monitor_tasks
|
164
168
|
command :monitor do
|
169
|
+
desc "Run process monitoring tasks"
|
165
170
|
task :on do
|
166
171
|
desc "Turn on process monitor"
|
167
172
|
action! :monitor_on
|
@@ -219,6 +224,8 @@ module Luban
|
|
219
224
|
|
220
225
|
def setup_crontab_tasks
|
221
226
|
command :cronjobs do
|
227
|
+
desc "Run crontab tasks"
|
228
|
+
|
222
229
|
task :update do
|
223
230
|
desc 'Update cron jobs'
|
224
231
|
action! :update_cronjobs
|
@@ -6,6 +6,7 @@ module Luban
|
|
6
6
|
include Luban::Deployment::Command::Tasks::Provision
|
7
7
|
include Luban::Deployment::Command::Tasks::Deploy
|
8
8
|
include Luban::Deployment::Command::Tasks::Control
|
9
|
+
include Luban::Deployment::Command::Tasks::Monitor
|
9
10
|
|
10
11
|
attr_reader :apps
|
11
12
|
|
@@ -30,7 +31,7 @@ module Luban
|
|
30
31
|
end
|
31
32
|
end
|
32
33
|
|
33
|
-
%i(provisionable? deployable? controllable?).each do |method|
|
34
|
+
%i(provisionable? deployable? controllable? monitorable?).each do |method|
|
34
35
|
define_method(method) do
|
35
36
|
apps.values.any? { |app| app.send(__method__) }
|
36
37
|
end
|
@@ -81,6 +82,14 @@ module Luban
|
|
81
82
|
end
|
82
83
|
end
|
83
84
|
|
85
|
+
Luban::Deployment::Command::Tasks::Monitor::Actions.each do |action|
|
86
|
+
define_method(action) do |args:, opts:|
|
87
|
+
apps.each_value do |app|
|
88
|
+
app.send(__method__, args: args, opts: opts) if app.monitorable?
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
84
93
|
def init_application(args:, opts:)
|
85
94
|
singleton_class.send(:include, Luban::Deployment::Helpers::Generator::Application)
|
86
95
|
define_singleton_method(:application) { args[:application] }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: luban
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rubyist Lei
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: luban-cli
|