Chapter 09/circuit-oneops-1-master/components/cookbooks/ansiblerole/providers/galaxy.rb
# these methods are the required overrides of
# a provider that extends from Chef::Provider::Package
# so refactoring into core Chef should be easy
these methods are the required overrides of
a provider that extends from Chef::Provider::Package
so refactoring into core Chef should be easy
these methods are the required overrides of a provider that extends from Chef :: Provider :: Package so refactoring into core Chef should be easy
def load_current_resource
  @current_resource = Chef::Resource::AnsibleroleGalaxy.new(new_resource.name)
  @current_resource.name(new_resource.name)
  @current_resource.version(nil)
  unless current_installed_version.nil?
    @current_resource.version(current_installed_version)
  end
  @current_resource
end
def load_current_resource @current_resource = Chef :: Resource :: AnsibleroleGalaxy . new ( new_resource . name ) @current_resource . name ( new_resource . name ) @current_resource . version ( nil ) unless current_installed_version . nil? @current_resource . version ( current_installed_version ) end @current_resource end
these methods are the required overrides of
a provider that extends from Chef::Provider::Package
so refactoring into core Chef should be easy
these methods are the required overrides of a provider that extends from Chef :: Provider :: Package so refactoring into core Chef should be easy