Class: Chef::Application::Knife

Inherits:
Object
  • Object
show all
Defined in:
lib/knife_santoku/monkey_patches/knife.rb

Instance Method Summary collapse

Instance Method Details

#runObject

Run knife



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/knife_santoku/monkey_patches/knife.rb', line 7

def run
  require 'knife-santoku'
  santoku = ::KnifeSantoku::Application.new(ARGV)

  Mixlib::Log::Formatter.show_time = false
  validate_and_parse_options
  quiet_traps

  santoku.run_before_callbacks

  Chef::Knife.run(ARGV, options)

  santoku.run_after_callbacks

  exit 0
end