Class: Abide::CLI::AbideCommand Abstract
- Inherits:
-
CmdParse::Command
- Object
- CmdParse::Command
- Abide::CLI::AbideCommand
- Includes:
- AbideDevUtils::Config
- Defined in:
- lib/abide_dev_utils/cli/abstract.rb
Overview
This class is abstract.
Direct Known Subclasses
CemCommand, CemGenerate, CemGenerateCoverageReport, CemGenerateReference, CemUpdateConfig, CemUpdateConfigFromDiff, CemValidate, CemValidatePuppetStrings, ComplyCommand, ComplyCompareReportCommand, ComplyReportCommand, PuppetAddCISCommentCommand, PuppetAuditClassNamesCommand, PuppetCommand, PuppetCoverageCommand, PuppetFixClassNamesCommand, PuppetNewCommand, PuppetRenameCommand, PuppetScoreModuleCommand, XccdfDiffCommand, XccdfGenMapCommand, XccdfToHieraCommand
Constant Summary
Constants included from AbideDevUtils::Config
AbideDevUtils::Config::DEFAULT_PATH
Instance Method Summary collapse
-
#initialize(cmd_name, cmd_short, cmd_long, **opts) ⇒ AbideCommand
constructor
A new instance of AbideCommand.
Methods included from AbideDevUtils::Config
config_section, #config_section, fetch, #fetch, to_h, #to_h
Constructor Details
#initialize(cmd_name, cmd_short, cmd_long, **opts) ⇒ AbideCommand
Returns a new instance of AbideCommand.
10 11 12 13 14 15 |
# File 'lib/abide_dev_utils/cli/abstract.rb', line 10 def initialize(cmd_name, cmd_short, cmd_long, **opts) super(cmd_name, **opts) short_desc(cmd_short) long_desc(cmd_long) add_command(CmdParse::HelpCommand.new, default: true) if opts[:takes_commands] end |