class GitLab::Exporter::CLI::NullRunner
Empty runner that will raise an InvalidCLICommand
when executed to provide the usage in the exception message
Public Class Methods
new(args)
click to toggle source
# File lib/gitlab_exporter/cli.rb, line 22 def initialize(args); end
Public Instance Methods
run()
click to toggle source
# File lib/gitlab_exporter/cli.rb, line 24 def run fail InvalidCLICommand.new("Usage: #{EXECUTABLE_NAME} <command> [options] [arguments...]\n\n"\ "Available commands are: #{GitLab::Exporter::CLI.commands.keys.join(', ')}") end