Module: Bookbinder::Commands::Naming
- Included in:
- Bookbinder::CommandValidator::Candidate, Bind, BuildAndPushTarball, Generate, Help, Imprint, Punch, PushFromLocal, PushToProd, RunPublishCI, UpdateLocalDocRepos, Version, Watch
- Defined in:
- lib/bookbinder/commands/naming.rb
Instance Method Summary collapse
Instance Method Details
#command_for?(test_command_name) ⇒ Boolean
6 7 8 |
# File 'lib/bookbinder/commands/naming.rb', line 6 def command_for?(test_command_name) command_name == test_command_name end |
#command_type ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/bookbinder/commands/naming.rb', line 14 def command_type if flag? 'flag' else 'command' end end |
#flag? ⇒ Boolean
10 11 12 |
# File 'lib/bookbinder/commands/naming.rb', line 10 def flag? command_name.match(/^--/) end |