Class: ChefDK::Policyfile::ChefServerCookbookSource
- Inherits:
-
Object
- Object
- ChefDK::Policyfile::ChefServerCookbookSource
- Defined in:
- lib/chef-dk/policyfile/chef_server_cookbook_source.rb
Instance Attribute Summary collapse
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #desc ⇒ Object
-
#initialize(uri) ⇒ ChefServerCookbookSource
constructor
A new instance of ChefServerCookbookSource.
- #null? ⇒ Boolean
- #source_options_for(cookbook_name, cookbook_version) ⇒ Object
- #universe_graph ⇒ Object
Constructor Details
#initialize(uri) ⇒ ChefServerCookbookSource
Returns a new instance of ChefServerCookbookSource.
26 27 28 |
# File 'lib/chef-dk/policyfile/chef_server_cookbook_source.rb', line 26 def initialize(uri) @uri = uri end |
Instance Attribute Details
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
24 25 26 |
# File 'lib/chef-dk/policyfile/chef_server_cookbook_source.rb', line 24 def uri @uri end |
Instance Method Details
#==(other) ⇒ Object
30 31 32 |
# File 'lib/chef-dk/policyfile/chef_server_cookbook_source.rb', line 30 def ==(other) other.kind_of?(self.class) && other.uri == uri end |
#desc ⇒ Object
46 47 48 |
# File 'lib/chef-dk/policyfile/chef_server_cookbook_source.rb', line 46 def desc "chef_server(#{uri})" end |
#null? ⇒ Boolean
42 43 44 |
# File 'lib/chef-dk/policyfile/chef_server_cookbook_source.rb', line 42 def null? false end |
#source_options_for(cookbook_name, cookbook_version) ⇒ Object
38 39 40 |
# File 'lib/chef-dk/policyfile/chef_server_cookbook_source.rb', line 38 def (cookbook_name, cookbook_version) raise UnsupportedFeature, 'ChefDK does not support chef-server cookbook default sources at this time' end |
#universe_graph ⇒ Object
34 35 36 |
# File 'lib/chef-dk/policyfile/chef_server_cookbook_source.rb', line 34 def universe_graph raise UnsupportedFeature, 'ChefDK does not support chef-server cookbook default sources at this time' end |