module KnifeUploader::BaseCommandMixin
Public Class Methods
included(includer)
click to toggle source
# File lib/chef/knife/uploader_base.rb, line 97 def self.included(includer) includer.class_eval do deps do require 'ridley' Celluloid.logger.level = Logger::ERROR require 'diffy' end option :pattern, short: '-p PATTERN', long: '--pattern PATTERN', description: 'A regular expression pattern to restrict the set of objects to ' + 'manipulate', proc: Proc.new { |value| Chef::Config[:knife][:pattern] = value } option :debug, long: '--debug', description: 'Turn on debug messages', proc: Proc.new { |value| Chef::Config[:knife][:debug] = value } option :show_encrypted, long: '--show_encrypted', description: 'Show the decrypted data bag contets when different.', prod: Proc.new { |value| Chef::Config[:knife][:show_encrypted] = value } end end