Class: Dapp::CLI::Push

Inherits:
Base show all
Defined in:
lib/dapp/cli/push.rb

Overview

CLI push subcommand

Direct Known Subclasses

Bp, Spush

Constant Summary

Constants inherited from Dapp::CLI

SUBCOMMANDS

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods inherited from Dapp::CLI

#initialize

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

Constructor Details

This class inherits a constructor from Dapp::CLI::Base

Instance Method Details

#run(argv = ARGV) ⇒ Object



54
55
56
57
58
# File 'lib/dapp/cli/push.rb', line 54

def run(argv = ARGV)
  self.class.parse_options(self, argv)
  repo = self.class.required_argument(self)
  Project.new(cli_options: config, apps_patterns: cli_arguments).public_send(class_to_lowercase, repo)
end