protected function updateDeploymentScript()
    {
        $this->info('Updating deployment script for site ' . $this->site . '...');

        $this->url = $this->obtainAPIURLEndpoint('update_deployment_script_uri');

        if (! File::exists($this->file)) {
            $this->error("File " . $this->file . " doesn't exists");
            die();
        }

        $this->http->put($this->url, [
                'form_params' => [
                    'content' => file_get_contents($this->file)
                ],
                'headers' => [
                    'X-Requested-With' => 'XMLHttpRequest',
                    'Authorization' => 'Bearer ' . fp_env('ACACHA_FORGE_ACCESS_TOKEN')
                ]
            ]
        );
    }
protected function updateDeploymentScript()
    {
        $this->info('Updating deployment script for site ' . $this->site . '...');

        $this->url = $this->obtainAPIURLEndpoint('update_deployment_script_uri');

        if (! File::exists($this->file)) {
            $this->error("File " . $this->file . " doesn't exists");
            die();
        }

        $this->http->put($this->url, [
                'form_params' => [
                    'content' => file_get_contents($this->file)
                ],
                'headers' => [
                    'X-Requested-With' => 'XMLHttpRequest',
                    'Authorization' => 'Bearer ' . fp_env('ACACHA_FORGE_ACCESS_TOKEN')
                ]
            ]
        );
    }
protected function updateDeploymentScript ( ) { $ this -> info ( 'Updating deployment script for site ' . $ this -> site . '...' ) ; $ this -> url = $ this -> obtainAPIURLEndpoint ( 'update_deployment_script_uri' ) ; if ( ! File :: exists ( $ this -> file ) ) { $ this -> error ( "File " . $ this -> file . " doesn't exists" ) ; die ( ) ; } $ this -> http -> put ( $ this -> url , [ 'form_params' => [ 'content' => file_get_contents ( $ this -> file ) ] , 'headers' => [ 'X-Requested-With' => 'XMLHttpRequest' , 'Authorization' => 'Bearer ' . fp_env ( 'ACACHA_FORGE_ACCESS_TOKEN' ) ] ] ) ; }
Update deployment script.
Update deployment script .