Sha256: 11195806f6dcee3c65e18e84dacd86ac0e8869adb0548820306b93eecebbe009
Contents?: true
Size: 1.71 KB
Versions: 3
Compression:
Stored size: 1.71 KB
Contents
# # Author:: Christopher Webber (<cwebber@getchef.com>) # Copyright:: Copyright (c) 2014 Chef Software, Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # require 'chef/knife' require 'shellwords' class Chef class Knife class SupermarketInstall < Knife::CookbookSiteInstall deps do require 'chef/mixin/shell_out' require 'chef/knife/core/cookbook_scm_repo' require 'chef/cookbook/metadata' end banner "knife supermarket install COOKBOOK [VERSION] (options)" category "supermarket" option :supermarket_site, :short => '-m SUPERMARKET_SITE', :long => '--supermarket-site SUPERMARKET_SITE', :description => 'Supermarket Site', :default => 'https://supermarket.getchef.com', :proc => Proc.new { |supermarket| Chef::Config[:knife][:supermarket_site] = supermarket } 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 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
knife-supermarket-0.2.1 | lib/chef/knife/supermarket_install.rb |
knife-supermarket-0.2.0 | lib/chef/knife/supermarket_install.rb |
knife-supermarket-0.1.0 | lib/chef/knife/supermarket_install.rb |