Module: ThorPatching

Included in:
Thor
Defined in:
lib/ovh/provisioner/cli.rb

Overview

Monkey patch Thor to fix #261

Instance Method Summary collapse

Instance Method Details



27
28
29
30
31
# File 'lib/ovh/provisioner/cli.rb', line 27

def banner(command, namespace = nil, subcommand = false)
  array = super.split(' ')
  array[1] = array[1].tr('_', '')[3..-1] if array[1].start_with?('cli_')
  array.join(' ')
end