コード例 #1
0
ファイル: GetCommand.php プロジェクト: adam-paterson/magedbm
 /**
  * Configure the command parameters.
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('get')->setDescription('Get database from Amazon S3')->addArgument('name', InputArgument::REQUIRED, 'Project identifier')->addOption('file', null, InputOption::VALUE_REQUIRED, 'File to import, otherwise latest downloaded')->addOption('--drop-tables', '-d', InputOption::VALUE_NONE, 'Drop tables before import')->addOption('--region', '-r', InputOption::VALUE_REQUIRED, 'Optionally specify region, otherwise default configuration will be used.')->addOption('--bucket', '-b', InputOption::VALUE_REQUIRED, 'Optionally specify bucket, otherwise default configuration will be used. ');
 }
コード例 #2
0
ファイル: ListCommand.php プロジェクト: adam-paterson/magedbm
 /**
  * Configure the command parameters.
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('ls')->setDescription('List available backups')->addArgument('name', InputArgument::REQUIRED, 'Project identifier')->addOption('--region', '-r', InputOption::VALUE_REQUIRED, 'Optionally specify region, otherwise default configuration will be used.')->addOption('--bucket', '-b', InputOption::VALUE_REQUIRED, 'Optionally specify bucket, otherwise default configuration will be used. ');
 }
コード例 #3
0
ファイル: PutCommand.php プロジェクト: eniuz/magedbm
 /**
  * Configure the command parameters.
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('put')->setDescription('Backup database to Amazon S3')->addArgument('name', InputArgument::REQUIRED, 'Project identifier')->addOption('--strip', '-s', InputOption::VALUE_OPTIONAL, 'Tables to exclude from export. Default is magerun\'s @development option.')->addOption('--no-clean', null, InputOption::VALUE_NONE, 'Do not remove old databases on S3.')->addOption('--history-count', null, InputOption::VALUE_REQUIRED, 'Database history count to keep on S3.')->addOption('--region', '-r', InputOption::VALUE_REQUIRED, 'Optionally specify region, otherwise default configuration will be used.')->addOption('--bucket', '-b', InputOption::VALUE_REQUIRED, 'Optionally specify bucket, otherwise default configuration will be used. ');
 }