berkshelf_ext 1.0.16 → 1.0.18
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +3 -0
- data/berkshelf_ext-1.0.16.gem +0 -0
- data/lib/berkshelf_ext/dependency_chains.rb +6 -9
- data/lib/berkshelf_ext/version.rb +1 -1
- metadata +3 -2
data/CHANGELOG.md
CHANGED
Binary file
|
@@ -11,30 +11,27 @@ module BerkshelfExt
|
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
14
|
+
|
14
15
|
def dependency_chains_sources(options = {})
|
15
16
|
l_sources = @sources.collect { |name, source| source }.flatten
|
16
17
|
|
17
|
-
|
18
|
-
|
19
|
-
only = Array(options.fetch(:only, nil)).collect(&:to_sym)
|
18
|
+
except = Array(options.fetch(:except, nil)).collect(&:to_sym)
|
19
|
+
only = Array(options.fetch(:only, nil)).collect(&:to_sym)
|
20
20
|
|
21
21
|
case
|
22
22
|
when !except.empty? && !only.empty?
|
23
23
|
raise Berkshelf::ArgumentError, "Cannot specify both :except and :only"
|
24
|
-
when !cookbooks.empty?
|
25
|
-
if !except.empty? && !only.empty?
|
26
|
-
Berkshelf.ui.warn "Cookbooks were specified, ignoring :except and :only"
|
27
|
-
end
|
28
|
-
l_sources.select { |source| options[:cookbooks].include?(source.name) }
|
29
24
|
when !except.empty?
|
30
25
|
l_sources.select { |source| (except & source.groups).empty? }
|
31
26
|
when !only.empty?
|
32
27
|
l_sources.select { |source| !(only & source.groups).empty? }
|
28
|
+
when options[:skip_dependencies]
|
29
|
+
l_sources.select { |source| options[:cookbooks].include?(source.name) }
|
33
30
|
else
|
34
31
|
l_sources
|
35
32
|
end
|
36
33
|
end
|
37
|
-
|
34
|
+
|
38
35
|
def dependency_chains_resolve(options={})
|
39
36
|
resolver(options).resolve(options.fetch(:cookbooks, nil))
|
40
37
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: berkshelf_ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.18
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
12
|
+
date: 2013-06-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: berkshelf
|
@@ -60,6 +60,7 @@ files:
|
|
60
60
|
- lib/berkshelf_ext/non_recommends_depends.rb
|
61
61
|
- lib/berkshelf_ext/berksfile_loader_context.rb
|
62
62
|
- lib/berkshelf_ext.rb
|
63
|
+
- berkshelf_ext-1.0.16.gem
|
63
64
|
- README.md
|
64
65
|
- berkshelf_ext-1.0.14.gem
|
65
66
|
- berkshelf_ext.gemspec
|