class ChefCLI::Policyfile::ChefServerLockFetcher
def initialize(name, source_options, chef_config)
- Example: ChefServerLockFetcher for a policyfile with the latest revision_id for a policy group -
Example: ChefServerLockFetcher for a policyfile with a specific revision id -
Parameters:
-
chef_config
(Chef::Config, ChefConfig::Config
) -- -
source_options
(Hash
) -- A hash with a :server key pointing at the chef server, -
name
(String
) -- The name of the policyfile
def initialize(name, source_options, chef_config) @name = name @source_options = source_options @chef_config = chef_config @source_options[:policy_name] ||= name end