luban 0.6.7 → 0.6.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/luban/deployment/cli/command.rb +6 -11
- 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: f1a53e2d718858e794fad9039bd3dca3b3ea47e7
|
4
|
+
data.tar.gz: cd42f481001b9d32968f8eb09c6044ffbb1d4aef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11730020832c5dbb29887320fde4f872dfc967d952e59d7d52c64671474fc2ed80d284c4fa1f7ff3980d78d28b486f57d5334ab6d8df3486c0c97199b4fe6fee
|
7
|
+
data.tar.gz: 8d2dc731d74bb014c3c594dd1a88757351f1aafb92d62eb28c9223f1e3f02a3e35f17c4f6cd898c22a3e9996b5f5c21041c767deecc3d36a04528568de69c20d
|
data/CHANGELOG.md
CHANGED
@@ -216,15 +216,16 @@ module Luban
|
|
216
216
|
locally ? result.first[:__return__] : result
|
217
217
|
end
|
218
218
|
|
219
|
-
def default_templates_path; nil; end
|
220
|
-
|
221
219
|
def base_templates_path(base_path)
|
222
220
|
path = Pathname.new(base_path).dirname.join('templates')
|
223
221
|
path.exist? ? path.realpath : nil
|
224
222
|
end
|
225
223
|
|
226
224
|
def default_templates
|
227
|
-
|
225
|
+
return @default_templates unless @default_templates.nil?
|
226
|
+
(@default_templates = []).tap do |t|
|
227
|
+
default_templates_paths[0...-1].each { |p| t.concat(p.children).uniq! }
|
228
|
+
end
|
228
229
|
end
|
229
230
|
|
230
231
|
protected
|
@@ -236,7 +237,7 @@ module Luban
|
|
236
237
|
load_configuration
|
237
238
|
validate_parameters
|
238
239
|
load_libraries
|
239
|
-
include_default_templates_path
|
240
|
+
include_default_templates_path
|
240
241
|
setup_cli
|
241
242
|
end
|
242
243
|
|
@@ -269,13 +270,7 @@ module Luban
|
|
269
270
|
|
270
271
|
def load_libraries; end
|
271
272
|
|
272
|
-
def include_default_templates_path
|
273
|
-
if default_templates_path.is_a?(Pathname)
|
274
|
-
default_templates_paths.unshift(default_templates_path)
|
275
|
-
else
|
276
|
-
abort "Aborted! Default templates path for #{self.class.name} MUST be a Pathname."
|
277
|
-
end
|
278
|
-
end
|
273
|
+
def include_default_templates_path; end
|
279
274
|
|
280
275
|
def setup_cli
|
281
276
|
setup_descriptions
|
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.6.
|
4
|
+
version: 0.6.8
|
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-08-
|
11
|
+
date: 2016-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: luban-cli
|