Module: Noveku::Options
- Included in:
- Core
- Defined in:
- lib/noveku/options.rb
Instance Method Summary collapse
Instance Method Details
#dry_run? ⇒ Boolean
7 8 9 |
# File 'lib/noveku/options.rb', line 7 def dry_run? arguments.include?('--dry-run') end |
#proxied_arguments ⇒ Object
11 12 13 |
# File 'lib/noveku/options.rb', line 11 def proxied_arguments arguments.reject { |a| %w(--verbose --dry-run).include?(a) } end |
#verbose? ⇒ Boolean
3 4 5 |
# File 'lib/noveku/options.rb', line 3 def verbose? arguments.include?('--verbose') end |