class Chef::Knife::ArtifactoryInstall
Public Instance Methods
run()
click to toggle source
# File lib/chef/knife/artifactory_install.rb, line 22 def run config[:artifactory_install] = true Chef::Log.debug("[KNIFE-ART] running site install with config: #{config}") orig_run end
Also aliased as: orig_run
Private Instance Methods
download_cookbook_to(download_path)
click to toggle source
# File lib/chef/knife/artifactory_install.rb, line 30 def download_cookbook_to(download_path) unless config[:artifactory_install] Chef::Log.debug("[KNIFE-ART] ArtifactoryInstall::download_cookbook_to called without artifactory flag, delegating to super") return orig_download_cookbook_to(download_path) end downloader = Chef::Knife::ArtifactoryDownload.new downloader.config[:file] = download_path downloader.config[:supermarket_site] = config[:supermarket_site] downloader.name_args = name_args downloader.run downloader end
Also aliased as: orig_download_cookbook_to