batali 0.3.12 → 0.3.14
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 +3 -0
- data/lib/batali/command/install.rb +23 -19
- data/lib/batali/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: 56e09e21e418f24e83792d17a8c9498c0b46a2df
|
4
|
+
data.tar.gz: 0590ade5cc488326df250797dcffc72820c49245
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f82d8b530f540eeed8436fef0f84f84dadbdea515ef757516a6f50f5c6ed64964ebed25293a5babd6895a2bb3e881b6e82e72e0b8d50201af202f58b27e973c1
|
7
|
+
data.tar.gz: 9d322ab00a9088b89b5f78c2bf0745588f8ff294676b03a9737df32d1eeb97df560e3efb74d6d265acb6201a6a90b6a7f8a6224f3cd916b3f93751c7c566dd87
|
data/CHANGELOG.md
CHANGED
@@ -20,25 +20,29 @@ module Batali
|
|
20
20
|
ui.error 'No cookbooks defined within manifest! Try resolving first. (`batali resolve`)'
|
21
21
|
else
|
22
22
|
run_action('Installing cookbooks') do
|
23
|
-
manifest.cookbook.
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
23
|
+
manifest.cookbook.each_slice(100) do |units_slice|
|
24
|
+
units_slice.map do |unit|
|
25
|
+
Thread.new do
|
26
|
+
if(unit.source.respond_to?(:cache_path))
|
27
|
+
unit.source.cache_path = cache_directory(
|
28
|
+
Bogo::Utility.snake(unit.source.class.name.split('::').last)
|
29
|
+
)
|
30
|
+
end
|
31
|
+
asset_path = unit.source.asset
|
32
|
+
final_path = File.join(install_path, unit.name)
|
33
|
+
if(infrastructure?)
|
34
|
+
final_path << "-#{unit.version}"
|
35
|
+
end
|
36
|
+
begin
|
37
|
+
FileUtils.cp_r(
|
38
|
+
File.join(asset_path, '.'),
|
39
|
+
final_path
|
40
|
+
)
|
41
|
+
ensure
|
42
|
+
unit.source.clean_asset(asset_path)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end.map(&:join)
|
42
46
|
end
|
43
47
|
nil
|
44
48
|
end
|
data/lib/batali/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: batali
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Roberts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: attribute_struct
|