Class: ChefDK::Policyfile::ChefServerCookbookSource

Inherits:
Object
  • Object
show all
Defined in:
lib/chef-dk/policyfile/chef_server_cookbook_source.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#uriObject (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

#descObject



46
47
48
# File 'lib/chef-dk/policyfile/chef_server_cookbook_source.rb', line 46

def desc
  "chef_server(#{uri})"
end

#null?Boolean

Returns:

  • (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

Raises:



38
39
40
# File 'lib/chef-dk/policyfile/chef_server_cookbook_source.rb', line 38

def source_options_for(cookbook_name, cookbook_version)
  raise UnsupportedFeature, 'ChefDK does not support chef-server cookbook default sources at this time'
end

#universe_graphObject

Raises:



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