Class: ChefDK::Policyfile::NullCookbookSource
- Inherits:
-
Object
- Object
- ChefDK::Policyfile::NullCookbookSource
- Defined in:
- lib/chef-dk/policyfile/null_cookbook_source.rb
Instance Method Summary collapse
- #desc ⇒ Object
-
#initialize(_uri = nil) ⇒ NullCookbookSource
constructor
A new instance of NullCookbookSource.
- #null? ⇒ Boolean
- #source_options_for(cookbook_name, cookbook_version) ⇒ Object
- #universe_graph ⇒ Object
Constructor Details
#initialize(_uri = nil) ⇒ NullCookbookSource
Returns a new instance of NullCookbookSource.
24 25 |
# File 'lib/chef-dk/policyfile/null_cookbook_source.rb', line 24 def initialize(_uri=nil) end |
Instance Method Details
#desc ⇒ Object
39 40 41 |
# File 'lib/chef-dk/policyfile/null_cookbook_source.rb', line 39 def desc "null_cookbook_source" end |
#null? ⇒ Boolean
35 36 37 |
# File 'lib/chef-dk/policyfile/null_cookbook_source.rb', line 35 def null? true end |
#source_options_for(cookbook_name, cookbook_version) ⇒ Object
31 32 33 |
# File 'lib/chef-dk/policyfile/null_cookbook_source.rb', line 31 def (cookbook_name, cookbook_version) raise UnsupportedFeature, 'You must set a default_source in your Policyfile to download cookbooks without explicit sources' end |
#universe_graph ⇒ Object
27 28 29 |
# File 'lib/chef-dk/policyfile/null_cookbook_source.rb', line 27 def universe_graph {} end |