/** * @param InputInterface $input * @param OutputInterface $output * @throws \Exception */ protected function initialize(InputInterface $input, OutputInterface $output) { parent::initialize($input, $output); $container = $this->getContainer(); $credentials = new Credentials($input->getOption('aws-key') ?: $container->getParameter('aws_key'), $input->getOption('aws-secret') ?: $container->getParameter('aws_secret')); $region = $input->hasOption('aws-region') ? $input->getOption('aws-region') : 'us-east-1'; $this->sqs = new SqsClient(['credentials' => $credentials, 'region' => $region, 'version' => '2012-11-05']); }
protected function configure() { parent::configure(); $this->setName('import:data')->setDescription('Import data to new api')->addOption('source-csv-file', null, InputOption::VALUE_REQUIRED, 'Source CSV file')->addOption('target-project-code', null, InputOption::VALUE_REQUIRED, 'Target project code')->addOption('import-wave-id', null, InputOption::VALUE_REQUIRED, 'Import wave ID')->addOption('api-endpoint', null, InputOption::VALUE_REQUIRED, 'Api endpoint')->addOption('access-token', null, InputOption::VALUE_OPTIONAL, 'access-token'); }
protected function configure() { parent::configure(); $this->setName('track:tasks')->setDescription('Process Tracking Tasks')->addOption('project-code', null, InputOption::VALUE_REQUIRED, 'Source project code')->addOption('survey', null, InputOption::VALUE_REQUIRED, 'Survey code')->addOption('member', null, InputOption::VALUE_REQUIRED, 'Member code'); }
protected function configure() { parent::configure(); $this->setName('xfer:data')->setDescription('Transfer members from source server')->addOption('source-project-code', null, InputOption::VALUE_REQUIRED, 'Source project code')->addOption('target-project-code', null, InputOption::VALUE_REQUIRED, 'Target project code'); }
protected function configure() { parent::configure(); $this->setName('xfer:locations')->setDescription('Transfer locations from source server')->addOption('source-user', null, InputOption::VALUE_REQUIRED, 'Source user')->addOption('target-user', null, InputOption::VALUE_REQUIRED, 'Target user (defaults to source user)'); }
protected function configure() { parent::configure(); $this->setName('members:accept')->setDescription('Accept members by given criteria')->addOption('project-code', null, InputOption::VALUE_REQUIRED, 'Source project code'); }
protected function configure() { parent::configure(); $this->setName('tasks:action')->setDescription('Do an action on selected tasks')->addOption('project-code', null, InputOption::VALUE_OPTIONAL, 'Source project code'); }
protected function configure() { parent::configure(); $this->setName('members:import')->setDescription('Import members from CSV file')->addArgument('filename', InputArgument::REQUIRED, 'path to the CSV file'); }
protected function configure() { parent::configure(); $this->setName('surveys:xfer')->setDescription('Transfer surveys from source server')->addOption('source-project-code', null, InputOption::VALUE_REQUIRED, 'Source project code')->addOption('target-project-code', null, InputOption::VALUE_OPTIONAL, 'Target project code')->addOption('source-survey-id', null, InputOption::VALUE_REQUIRED, 'Source survey ID')->addOption('target-survey-code', null, InputOption::VALUE_OPTIONAL, 'Target survey code'); }
protected function configure() { parent::configure(); $this->setName('export:data')->setDescription('Export data from source server as text')->addOption('source-project-code', null, InputOption::VALUE_REQUIRED, 'Source project code')->addOption('filename', null, InputOption::VALUE_REQUIRED, 'Output File Name')->addOption('url-only', null, InputOption::VALUE_NONE, 'list of URLs only')->addOption('limit', null, InputOption::VALUE_REQUIRED, 'Number of records to read', 10); }
protected function configure() { parent::configure(); $this->setName('members:summary')->setDescription('Show members summary')->addOption('project-code', null, InputOption::VALUE_REQUIRED, 'Source project code')->addOption('enrollment-status-code', null, InputOption::VALUE_OPTIONAL, 'Enrollment status code'); }