Class: ChefCLI::Policyfile::NullCookbookSource
- Inherits:
-
Object
- Object
- ChefCLI::Policyfile::NullCookbookSource
- Defined in:
- lib/chef-cli/policyfile/null_cookbook_source.rb
Instance Method Summary collapse
- #desc ⇒ Object
-
#initialize(_uri = nil) ⇒ NullCookbookSource
constructor
A new instance of NullCookbookSource.
- #null? ⇒ Boolean
- #preferred_cookbooks ⇒ Object
- #source_options_for(cookbook_name, cookbook_version) ⇒ Object
- #universe_graph ⇒ Object
Constructor Details
#initialize(_uri = nil) ⇒ NullCookbookSource
Returns a new instance of NullCookbookSource.
24 |
# File 'lib/chef-cli/policyfile/null_cookbook_source.rb', line 24 def initialize(_uri = nil); end |
Instance Method Details
#desc ⇒ Object
42 43 44 |
# File 'lib/chef-cli/policyfile/null_cookbook_source.rb', line 42 def desc "null_cookbook_source" end |
#null? ⇒ Boolean
34 35 36 |
# File 'lib/chef-cli/policyfile/null_cookbook_source.rb', line 34 def null? true end |
#preferred_cookbooks ⇒ Object
38 39 40 |
# File 'lib/chef-cli/policyfile/null_cookbook_source.rb', line 38 def preferred_cookbooks [] end |
#source_options_for(cookbook_name, cookbook_version) ⇒ Object
30 31 32 |
# File 'lib/chef-cli/policyfile/null_cookbook_source.rb', line 30 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
26 27 28 |
# File 'lib/chef-cli/policyfile/null_cookbook_source.rb', line 26 def universe_graph {} end |