class ChefCLI::Policyfile::GitLockFetcher
def initialize(name, source_options, storage_config)
-
source_options
(Hash
) -- A hash with a :path key pointing at the location -
name
(String
) -- The name of the policyfile
def initialize(name, source_options, storage_config) @name = name @storage_config = storage_config @source_options = symbolize_keys(source_options) @revision = @source_options[:revision] @path = @source_options[:path] || @source_options[:rel] @uri = @source_options[:git] @branch = @source_options[:branch] @tag = @source_options[:tag] @ref = @source_options[:ref] # The revision to parse @rev_parse = @source_options[:ref] || @source_options[:branch] || @source_options[:tag] || "master" end