Class: Ducalis::CliArguments
- Inherits:
-
Object
- Object
- Ducalis::CliArguments
- Defined in:
- lib/ducalis/cli_arguments.rb
Constant Summary collapse
- ADAPTERS =
[ Adapters::CircleCI, Adapters::Default ].freeze
- HELP_FLAGS =
%w[-h -? --help].freeze
- FORMATTER =
%w[--format GithubFormatter].freeze
- DOCS_ARG =
:docs
- REPORTER_ARG =
:reporter
Instance Method Summary collapse
Instance Method Details
#docs_command? ⇒ Boolean
15 16 17 |
# File 'lib/ducalis/cli_arguments.rb', line 15 def docs_command? ARGV.any? { |arg| arg == to_key(DOCS_ARG) } end |
#help_command? ⇒ Boolean
19 20 21 |
# File 'lib/ducalis/cli_arguments.rb', line 19 def help_command? ARGV.any? { |arg| HELP_FLAGS.include?(arg) } end |
#process! ⇒ Object
23 24 25 26 |
# File 'lib/ducalis/cli_arguments.rb', line 23 def process! detect_git_mode! detect_reporter! end |