Class: PEBuild::Command::Base
- Inherits:
-
Object
- Object
- PEBuild::Command::Base
- Defined in:
- lib/pe_build/command/base.rb
Class Method Summary collapse
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(argv, env) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(argv, env) ⇒ Base
Returns a new instance of Base.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/pe_build/command/base.rb', line 9 def initialize(argv, env) super split_argv @subcommands = { 'list' => PEBuild::Command::List, 'copy' => PEBuild::Command::Copy, 'facts' => PEBuild::Command::Facts, } end |
Class Method Details
.synopsis ⇒ Object
5 6 7 |
# File 'lib/pe_build/command/base.rb', line 5 def self.synopsis 'Commands related to PE Installation' end |
Instance Method Details
#execute ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/pe_build/command/base.rb', line 20 def execute if @subcommand execute_subcommand else print_help end end |