コード例 #1
0
 protected function configure()
 {
     parent::configure();
     $info = posix_getpwuid(posix_getuid());
     $home = isset($info['dir']) ? $info['dir'] : '/tmp';
     $this->setName('site:backup')->addOption('directory', null, InputOption::VALUE_REQUIRED, "Target directory where backups should be stored", $home)->setDescription('Backup a site');
 }
コード例 #2
0
    protected function configure()
    {
        parent::configure();
        $this->setName('extension:installfile')->setDescription('Install packaged extensions for file or directory into a site')->setHelp(<<<EOL
You can install extensions using their installation packages using this command:

    <info>joomla extension:installfile testsite /home/vagrant/com_component.v1.x.zip /home/vagrant/plg_plugin.v2.x.tar.gz</info>

This will install both the <comment>com_component.v1.x.zip</comment> and <comment>plg_plugin.v2.x.tar.gz</comment> packages.
You can also point to the directory where the extracted package can be found.
EOL
)->addArgument('extension', InputArgument::REQUIRED | InputArgument::IS_ARRAY, 'A list of full paths to extension packages (file or directory) to install');
    }
コード例 #3
0
    protected function configure()
    {
        parent::configure();
        $this->setName('extension:install')->setDescription('Install extensions into a site using the discover method')->setHelp(<<<EOL
After copying or symlinking your extension code into the Joomla application, you can use this command to
have Joomla automatically find the extension files and install it:

    <info>joomla extension:install testsite com_foobar</info>

The extension argument should match the element name (<comment>com_foobar</comment>) as defined in your extension XML manifest.

For more information about Joomla's discover method, refer to the official documentation: https://docs.joomla.org/Help34:Extensions_Extension_Manager_Discover
EOL
)->addArgument('extension', InputArgument::REQUIRED | InputArgument::IS_ARRAY, 'A list of extensions to install to the site using discover install. Use \'all\' to install all discovered extensions.');
    }
コード例 #4
0
    protected function configure()
    {
        parent::configure();
        $this->setName('extension:symlink')->setDescription('Symlink projects into a site')->setHelp(<<<EOL
This command will symlink the directories from the <comment>--projects-dir</comment> directory into the given site. This is ideal for testing your custom extensions while you are working on them.
Your source code should resemble the Joomla directory structure for symlinking to work well. For example, the directory structure of your component should look like this:

* administrator/components/com_foobar
* components/com_foobar
* media/com_foobar

To symlink <comment>com_foobar</comment> into your tesite:

    <info>joomla extension:symlink testsite com_foobar</info>

You can now use the <comment>extension:register</comment> or <comment>extension:install</comment> commands to make your component available to Joomla.

Note that you can use the <comment>site:create</comment> command to both create a new site and symlink your projects into it using the <comment>--symlink</comment> flag.
EOL
)->addArgument('symlink', InputArgument::REQUIRED | InputArgument::IS_ARRAY, 'A list of directories to symlink from projects directory. Use \'all\' to symlink every directory.')->addOption('projects-dir', null, InputOption::VALUE_REQUIRED, 'Directory where your custom projects reside', sprintf('%s/Projects', trim(`echo ~`)));
    }
コード例 #5
0
 protected function configure()
 {
     parent::configure();
     $this->addOption('application-url', null, InputOption::VALUE_REQUIRED, "URL to access the site via HTTP. Used for clearing APC cache using a temporary script that we access via HTTP since we cannot clear APC over the command line.", 'http://localhost/<site>');
 }
コード例 #6
0
 protected function configure()
 {
     parent::configure();
     $this->setName('site:deploy')->setDescription('Deploy your website with git-ftp')->addArgument('server', InputArgument::REQUIRED, 'FTP server to deploy to. You can add a different port or subdirectory. Example: ftp://ftp.domain.com:21/httpdocs')->addOption('user', 'U', InputOption::VALUE_REQUIRED, "FTP user", exec('whoami'))->addOption('password', 'P', InputOption::VALUE_OPTIONAL, "FTP password. Omit for interactive password prompt.");
 }
コード例 #7
0
 protected function configure()
 {
     parent::configure();
     $this->addOption('mysql-login', 'L', InputOption::VALUE_REQUIRED, "MySQL credentials in the form of user:password", 'root:root')->addOption('mysql-host', 'H', InputOption::VALUE_REQUIRED, "MySQL host", 'localhost')->addOption('mysql_db_prefix', null, InputOption::VALUE_OPTIONAL, "MySQL database prefix", $this->target_db_prefix)->addOption('mysql-database', 'db', InputOption::VALUE_REQUIRED, "MySQL database name. If set, the --mysql_db_prefix option will be ignored.")->addOption('mysql-driver', null, InputOption::VALUE_REQUIRED, "MySQL driver", 'mysqli');
 }
コード例 #8
0
ファイル: Purge.php プロジェクト: eitamar/joomlatools-console
 protected function configure()
 {
     parent::configure();
     $this->setName('finder:purge')->setDescription('Purge the Smart Search index');
 }
コード例 #9
0
 protected function configure()
 {
     parent::configure();
     $this->setName('capistrano:deploy')->setDescription('Deploy an already configured capistrano project')->addOption('environment', 'e', InputOption::VALUE_OPTIONAL, "Which environment would you like to deploy to", 'staging');
 }
コード例 #10
0
 protected function configure()
 {
     parent::configure();
     $this->setName('site:download')->setDescription('Download and extract the given Joomla version')->addOption('release', null, InputOption::VALUE_REQUIRED, "Joomla version. Can be a release number (2, 3.2, ..) or branch name. Run `joomla versions` for a full list.\nUse \"none\" for an empty virtual host.", 'latest')->addOption('refresh', null, InputOption::VALUE_NONE, 'Update the list of available tags and branches from the Joomla repository')->addOption('clear-cache', null, InputOption::VALUE_NONE, 'Clear the downloaded files cache')->addOption('repo', null, InputOption::VALUE_REQUIRED, 'Alternative Git repository to clone. To use joomlatools/platform, use --repo=platform.');
 }
コード例 #11
0
 protected function configure()
 {
     parent::configure();
     $this->setName('vhost:create')->setDescription('Creates a new Apache2 virtual host')->addOption('http-port', null, InputOption::VALUE_REQUIRED, 'The HTTP port the virtual host should listen to', Util::isJoomlatoolsBox() ? 8080 : 80)->addOption('disable-ssl', null, InputOption::VALUE_NONE, 'Disable SSL for this site')->addOption('ssl-crt', null, InputOption::VALUE_REQUIRED, 'The full path to the signed cerfificate file', '/etc/apache2/ssl/server.crt')->addOption('ssl-key', null, InputOption::VALUE_REQUIRED, 'The full path to the private cerfificate file', '/etc/apache2/ssl/server.key')->addOption('ssl-port', null, InputOption::VALUE_REQUIRED, 'The port on which the server will listen for SSL requests', '443');
 }
コード例 #12
0
 protected function configure()
 {
     parent::configure();
     $this->setName('extension:installfile')->setDescription('Install packaged extensions for file or directory into a site')->addArgument('extension', InputArgument::REQUIRED | InputArgument::IS_ARRAY, 'A list of full paths to extension packages (file or directory) to install');
 }
コード例 #13
0
 protected function configure()
 {
     parent::configure();
     $this->setName('extension:install')->setDescription('Install extensions into a site')->addArgument('extension', InputArgument::REQUIRED | InputArgument::IS_ARRAY, 'A list of extensions to install to the site using discover install. Use \'all\' to install all discovered extensions.');
 }
コード例 #14
0
 protected function configure()
 {
     parent::configure();
     $this->setName('vhost:create')->setDescription('Creates a new Apache2 virtual host')->addOption('disable-ssl', null, InputOption::VALUE_NONE, 'Disable SSL for this site')->addOption('ssl-crt', null, InputOption::VALUE_OPTIONAL, 'The full path to the signed cerfificate file', '/etc/apache2/ssl/server.crt')->addOption('ssl-key', null, InputOption::VALUE_OPTIONAL, 'The full path to the private cerfificate file', '/etc/apache2/ssl/server.key')->addOption('ssl-port', null, InputOption::VALUE_OPTIONAL, 'The port on which the server will listen for SSL requests', '443');
 }
コード例 #15
0
ファイル: Token.php プロジェクト: eitamar/joomlatools-console
 protected function configure()
 {
     parent::configure();
     $this->setName('site:token')->setDescription('Generate a login token for a user name to be used for JWT authentication')->setHelp('Add the token to your query string such as <comment>?auth_token=TOKEN</comment> and the given user will be automatically logged in')->addArgument('username', InputArgument::REQUIRED, 'User name to generate the token for');
 }
コード例 #16
0
 protected function configure()
 {
     parent::configure();
     $this->setName('language:key')->setDescription('Generate a language key from the given string')->addArgument('string', InputArgument::REQUIRED, 'The string');
 }
コード例 #17
0
ファイル: Index.php プロジェクト: shekkbuilder/joomla-console
 protected function configure()
 {
     parent::configure();
     $this->setName('finder:index')->setDescription('Create finder indexes')->addOption('purge', 'p', InputOption::VALUE_OPTIONAL, 'Whether the finder should purge existing results first?', false);
 }
コード例 #18
0
 protected function configure()
 {
     parent::configure();
     $this->setName('site:checkin')->setDescription('Checks in all of the database tables of a site')->addOption('user-column', null, InputOption::VALUE_REQUIRED, 'The check in user column name', 'checked_out')->addOption('date-column', null, InputOption::VALUE_REQUIRED, 'The check in date column name', 'checked_out_time')->addArgument('tables', InputArgument::OPTIONAL | InputArgument::IS_ARRAY, 'A list of tables to check in');
 }
コード例 #19
0
 protected function configure()
 {
     parent::configure();
     $this->setName('extension:uninstall')->setDescription('Uninstall un-protected extensions from a site')->addArgument('extensions', InputArgument::REQUIRED | InputArgument::IS_ARRAY, 'The 3rd party extensions to uninstall from the site');
 }
コード例 #20
0
 protected function configure()
 {
     parent::configure();
     $this->setName('extension:symlink')->setDescription('Symlink projects into a site')->addArgument('symlink', InputArgument::REQUIRED | InputArgument::IS_ARRAY, 'A list of folders to symlink from projects folder. Use \'all\' to symlink every folder.')->addOption('projects-dir', null, InputOption::VALUE_REQUIRED, 'Directory where your custom projects reside', sprintf('%s/Projects', trim(`echo ~`)));
 }
コード例 #21
0
ファイル: Index.php プロジェクト: eitamar/joomlatools-console
 protected function configure()
 {
     parent::configure();
     $this->setName('finder:index')->setDescription('Run the Smart Search indexer')->addOption('purge', 'p', InputOption::VALUE_NONE, 'Purge existing indexes first');
 }
コード例 #22
0
ファイル: Purge.php プロジェクト: shekkbuilder/joomla-console
 protected function configure()
 {
     parent::configure();
     $this->setName('finder:purge')->setDescription('Purge all finder indexes');
 }