mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
code style fix
add command tests
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
use App\SSHCommands\Command;
|
||||
use Illuminate\Support\Facades\File;
|
||||
|
||||
class RunScript extends Command
|
||||
class RunScriptCommand extends Command
|
||||
{
|
||||
public function __construct(protected string $path, protected string $script)
|
||||
{
|
||||
@ -20,7 +20,7 @@ public function content(): string
|
||||
{
|
||||
return str($this->file())
|
||||
->replace('__path__', $this->path)
|
||||
->replace('__script__', make_bash_script($this->script))
|
||||
->replace('__script__', $this->script)
|
||||
->toString();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user