1 | <?php |
||
17 | class PublishRepository extends Command |
||
18 | { |
||
19 | use ChecksEnv, DiesIfEnvVariableIsnotInstalled, ChecksServer, ChecksSite; |
||
20 | |||
21 | /** |
||
22 | * Github Repository. |
||
23 | * |
||
24 | * @var String |
||
25 | */ |
||
26 | protected $repository; |
||
27 | |||
28 | /** |
||
29 | * Server name |
||
30 | * |
||
31 | * @var String |
||
32 | */ |
||
33 | protected $server; |
||
34 | |||
35 | /** |
||
36 | * Servers. |
||
37 | * |
||
38 | * @var array |
||
39 | */ |
||
40 | protected $servers; |
||
41 | |||
42 | /** |
||
43 | * Forge site id. |
||
44 | * |
||
45 | * @var String |
||
46 | */ |
||
47 | protected $site; |
||
48 | |||
49 | /** |
||
50 | * The name and signature of the console command. |
||
51 | * |
||
52 | * @var string |
||
53 | */ |
||
54 | protected $signature = 'publish:repository {repository?} {--server=} {--site=}'; |
||
55 | |||
56 | /** |
||
57 | * The console command description. |
||
58 | * |
||
59 | * @var string |
||
60 | */ |
||
61 | protected $description = 'Install repository on Laravel Forge site'; |
||
62 | |||
63 | /** |
||
64 | * Guzzle http client. |
||
65 | * |
||
66 | * @var Client |
||
67 | */ |
||
68 | protected $http; |
||
69 | |||
70 | /** |
||
71 | * Create a new command instance. |
||
72 | * |
||
73 | */ |
||
74 | public function __construct(Client $http) |
||
79 | |||
80 | /** |
||
81 | * Execute the console command. |
||
82 | * |
||
83 | */ |
||
84 | public function handle() |
||
107 | |||
108 | /** |
||
109 | * Abort command execution? |
||
110 | */ |
||
111 | protected function abortCommandExecution() |
||
121 | } |
||
122 |