class Chef::Knife::SupermarketInstall

Public Instance Methods

download_cookbook_to(download_path) click to toggle source
# File lib/chef/knife/supermarket_install.rb, line 42
def download_cookbook_to(download_path)
  downloader = Chef::Knife::SupermarketDownload.new
  downloader.config[:file] = download_path
  downloader.config[:supermarket_site] = config[:supermarket_site]
  downloader.name_args = name_args
  downloader.run
  downloader
end
run() click to toggle source
Calls superclass method
# File lib/chef/knife/supermarket_install.rb, line 51
      def run
        Chef::Log.deprecation <<EOF
The `knife-supermarket` gem has been deprecated and the `knife supermarket` subcommands have been moved in to core Chef. Please ensure you have Chef 12.12 or newer, and then uninstall this gem.
EOF
        super
      end