Skip to content

Commit

Permalink
fix: rename rockshell to rock everywhere and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed Jul 13, 2023
1 parent 2a68b11 commit 2697bd6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion App/Commands/DbPull.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function handle()
$this->write("Creating remote dump...");
$php = $this->option('php') ?: $this->getConfig('remotePHP') ?: 'php';
$this->sshExec($ssh, "cd $dir
$php RockShell/rockshell db-dump -f tmp.sql");
$php RockShell/rock db-dump -f tmp.sql");

$this->write("Copying dump to local...");
$this->exec("scp $ssh:$dir/$folder/tmp.sql {$wire->config->paths->root}/$folder/tmp.sql");
Expand Down
2 changes: 1 addition & 1 deletion App/Commands/PwInstall.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public function stepReloadAdmin($notice = true)
. "##### INSTALL SUCCESSFUL ######\n"
. "### powered by baumrock.com ###");
$this->warn("Login: $url");
$this->alert("You can now call php rockshell pw:setup");
$this->alert("You can now call php rock pw:setup");
die();
}
}
Expand Down
2 changes: 1 addition & 1 deletion App/Commands/Symlink.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function config()
public function handle()
{
$root = realpath(__DIR__ . "/../../../");
$this->exec("cd $root && ln -snf RockShell/rockshell rock", false);
$this->exec("cd $root && ln -snf RockShell/rock rock", false);
if (is_file($root . "/rock")) {
$this->success("Symlink 'rock' created at $root");
$this->comment("You can now use 'php rock' to execute RockShell");
Expand Down
10 changes: 5 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ Do NOT install the module via the PW Backend!
Simply execute the rockshell file from your command line via your PHP interpreter:

```sh
php /path/to/your/project/RockShell/rockshell
php /path/to/your/project/RockShell/rock

# or
cd /path/to/your/project/RockShell
php rockshell
php rock
```

You can either call the `rockshell` file directly as shown above or you can create a symlink that points to that file, so that you can call `php rockshell` directly from within the PW root folder:
You can either call the `rock` file directly as shown above or you can create a symlink that points to that file, so that you can call `php rock` directly from within the PW root folder:

```sh
cd /path/to/pw/RockShell
php rockshell symlink
php rock symlink

# now that the symlink exists you can use short calls:
cd /path/to/pw
Expand Down Expand Up @@ -78,4 +78,4 @@ class HelloWorld extends Command {
}
```

Check out the `php rockshell ping` command and see the symfony docs about coloring here: https://symfony.com/doc/current/console/coloring.html
Check out the `php rock ping` command and see the symfony docs about coloring here: https://symfony.com/doc/current/console/coloring.html
File renamed without changes.

0 comments on commit 2697bd6

Please sign in to comment.