97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
# 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
|