lib/dri/commands/fetch.rb in dri-0.8.0 vs lib/dri/commands/fetch.rb in dri-0.9.0

- old
+ new

@@ -92,8 +92,19 @@ return invoke :help, %w[pipelines] if options[:help] require_relative 'fetch/pipelines' Dri::Commands::Fetch::Pipelines.new(options).execute end + + desc 'runbooks', 'Fetch runbooks' + method_option :help, aliases: '-h', type: :boolean, + desc: 'Display usage information' + + def runbooks(*args) + return invoke :help, %w[runbooks] if options[:help] + + require_relative 'fetch/runbooks' + Dri::Commands::Fetch::Runbooks.new(options).execute(folder: args.first) + end end end end