Class: Chef::Knife::SupermarketInstall

Inherits:
Knife::CookbookSiteInstall
  • Object
show all
Defined in:
lib/chef/knife/supermarket_install.rb

Instance Method Summary collapse

Instance Method Details

#download_cookbook_to(download_path) ⇒ Object



42
43
44
45
46
47
48
49
# 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

#runObject



51
52
53
54
55
56
# 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