Class: Dapp::CLI
- Inherits:
-
Object
- Object
- Dapp::CLI
- Extended by:
- Helper::Cli
- Includes:
- Helper::Trivia, Mixlib::CLI
- Defined in:
- lib/dapp/cli.rb,
lib/dapp/cli/bp.rb,
lib/dapp/cli/run.rb,
lib/dapp/cli/tag.rb,
lib/dapp/cli/base.rb,
lib/dapp/cli/list.rb,
lib/dapp/cli/push.rb,
lib/dapp/cli/build.rb,
lib/dapp/cli/spush.rb,
lib/dapp/cli/stages.rb,
lib/dapp/cli/cleanup.rb,
lib/dapp/cli/mrproper.rb,
lib/dapp/cli/stage_image.rb,
lib/dapp/cli/stages/pull.rb,
lib/dapp/cli/stages/push.rb,
lib/dapp/cli/stages/flush_repo.rb,
lib/dapp/cli/stages/flush_local.rb,
lib/dapp/cli/stages/cleanup_repo.rb,
lib/dapp/cli/stages/cleanup_local.rb
Overview
CLI
Defined Under Namespace
Classes: Base, Bp, Build, Cleanup, List, Mrproper, Push, Run, Spush, StageImage, Stages, Tag
Constant Summary collapse
- SUBCOMMANDS =
['build', 'push', 'spush', 'list', 'run', 'stages', 'cleanup', 'bp', 'mrproper', 'stage image', 'tag'].freeze
Instance Method Summary collapse
-
#initialize(*args) ⇒ CLI
constructor
A new instance of CLI.
- #run(argv = ARGV) ⇒ Object
Methods included from Helper::Cli
cli_wrapper, composite_options, parse_options, parse_subcommand, prepare_subcommand, required_argument, run_subcommand
Methods included from Helper::Trivia
class_to_lowercase, #class_to_lowercase, #delete_file, #kwargs, #search_file_upward
Constructor Details
Instance Method Details
#run(argv = ARGV) ⇒ Object
54 55 56 57 58 |
# File 'lib/dapp/cli.rb', line 54 def run(argv = ARGV) argv, subcommand, subcommand_argv = self.class.parse_subcommand(self, argv) self.class.(self, argv) self.class.run_subcommand self, subcommand, subcommand_argv end |