luban 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/luban/deployment/cli/application/publisher.rb +1 -1
- data/lib/luban/deployment/runner.rb +19 -9
- 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: d711bbdde3319889d6851b02c652b1420f98fba5
|
4
|
+
data.tar.gz: 6d91b1ab03f54730ad59255d25ef8a659d811029
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3eb285d74e5c6a5cec47efb0130bebca1fc744b47815636f7bf8bdd25c1b2a71df745fd15db3d401b83954e7a45c3c18e9749fe7745b71a9b3da0fcb10c7b820
|
7
|
+
data.tar.gz: a2882bac46666c2cbd9c86a204cb507789de5870f8c7b1a6bbab2953565b5a6c4e86af0be88e08c22afa7386bb8bacc5d365a3e5c93984bd3c8e0c5a8eb3bc9c
|
data/CHANGELOG.md
CHANGED
@@ -24,11 +24,11 @@ module Luban
|
|
24
24
|
|
25
25
|
def on_configure
|
26
26
|
super
|
27
|
-
set_work_dir
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
27
|
+
if set_work_dir
|
28
|
+
setup_cli_with_projects
|
29
|
+
else
|
30
|
+
setup_cli_without_projects
|
31
|
+
end
|
32
32
|
end
|
33
33
|
|
34
34
|
def set_default_parameters
|
@@ -45,9 +45,7 @@ module Luban
|
|
45
45
|
|
46
46
|
def set_work_dir
|
47
47
|
project_root = find_lubanfile
|
48
|
-
|
49
|
-
abort "Aborted! NOT a Luban project (or any of the parent directories): #{lubanfile} is NOT found."
|
50
|
-
else
|
48
|
+
unless project_root.nil?
|
51
49
|
work_dir Pathname.new(project_root)
|
52
50
|
apps_path work_dir.join('apps')
|
53
51
|
end
|
@@ -73,7 +71,11 @@ module Luban
|
|
73
71
|
Object.const_get(project.camelcase)
|
74
72
|
end
|
75
73
|
|
76
|
-
def
|
74
|
+
def setup_cli_with_projects
|
75
|
+
load_configuration_file(config_file)
|
76
|
+
set_default_parameters
|
77
|
+
load_libraries
|
78
|
+
|
77
79
|
version Luban::Deployment::VERSION
|
78
80
|
desc "Manage the deployment of project #{project.camelcase}"
|
79
81
|
setup_projects
|
@@ -92,6 +94,14 @@ module Luban
|
|
92
94
|
mod = Object.const_set(stg.camelcase, Module.new)
|
93
95
|
mod.const_set(project.camelcase, Class.new(project_base_class))
|
94
96
|
end
|
97
|
+
|
98
|
+
def setup_cli_without_projects
|
99
|
+
version Luban::Deployment::VERSION
|
100
|
+
desc "Framework to manage project deployment"
|
101
|
+
action do
|
102
|
+
abort "Aborted! NOT a Luban project (or any of the parent directories): #{lubanfile} is NOT found."
|
103
|
+
end
|
104
|
+
end
|
95
105
|
end
|
96
106
|
end
|
97
107
|
end
|
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.3.
|
4
|
+
version: 0.3.3
|
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-04-
|
11
|
+
date: 2016-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: luban-cli
|