1 | <?php |
||
8 | class Site extends ApiResource |
||
9 | { |
||
10 | /** |
||
11 | * Resource type. |
||
12 | * |
||
13 | * @return string |
||
14 | */ |
||
15 | public static function resourceType() |
||
19 | |||
20 | /** |
||
21 | * Resource path (relative to Server URL). |
||
22 | * |
||
23 | * @return string |
||
24 | */ |
||
25 | public function resourcePath() |
||
29 | |||
30 | /** |
||
31 | * Site domain. |
||
32 | * |
||
33 | * @return string |
||
34 | */ |
||
35 | public function domain() |
||
39 | |||
40 | /** |
||
41 | * Project type. |
||
42 | * |
||
43 | * @return string |
||
44 | */ |
||
45 | public function projectType() |
||
49 | |||
50 | /** |
||
51 | * Site directory. |
||
52 | * |
||
53 | * @return string |
||
54 | */ |
||
55 | public function directory() |
||
59 | |||
60 | /** |
||
61 | * Site repository. |
||
62 | * |
||
63 | * @return string |
||
64 | */ |
||
65 | public function repository() |
||
69 | |||
70 | /** |
||
71 | * Site repository provider. |
||
72 | * |
||
73 | * @return string |
||
74 | */ |
||
75 | public function repositoryProvider() |
||
79 | |||
80 | /** |
||
81 | * Site repository branch. |
||
82 | * |
||
83 | * @return string |
||
84 | */ |
||
85 | public function repositoryBranch() |
||
89 | |||
90 | /** |
||
91 | * Site repository status. |
||
92 | * |
||
93 | * @return string |
||
94 | */ |
||
95 | public function repositoryStatus() |
||
99 | |||
100 | /** |
||
101 | * Site deployment status. |
||
102 | * |
||
103 | * @return string | null |
||
104 | */ |
||
105 | public function deploymentStatus() |
||
109 | |||
110 | /** |
||
111 | * Site allows wildcard URIs. |
||
112 | * |
||
113 | * @return boolean |
||
114 | */ |
||
115 | public function wildcards() |
||
119 | |||
120 | /** |
||
121 | * Site quick deploy enabled. |
||
122 | * |
||
123 | * @return boolean |
||
124 | */ |
||
125 | public function quickDeploy() |
||
129 | |||
130 | /** |
||
131 | * Site hipchat room. |
||
132 | * |
||
133 | * @return string |
||
134 | */ |
||
135 | public function hipchatRoom() |
||
139 | |||
140 | /** |
||
141 | * Site slack channel. |
||
142 | * |
||
143 | * @return string |
||
144 | */ |
||
145 | public function slackChannel() |
||
149 | |||
150 | /** |
||
151 | * Site app. |
||
152 | * |
||
153 | * @return string | null |
||
154 | */ |
||
155 | public function app() |
||
159 | |||
160 | /** |
||
161 | * Site app status. |
||
162 | * |
||
163 | * @return string | null |
||
164 | */ |
||
165 | public function appStatus() |
||
169 | |||
170 | /** |
||
171 | * Install new application on site. |
||
172 | * |
||
173 | * @param \Laravel\Forge\Contracts\ApplicationContract $application |
||
174 | * |
||
175 | * @return bool |
||
176 | */ |
||
177 | public function install(ApplicationContract $application) |
||
185 | |||
186 | /** |
||
187 | * Uninstall application from site. |
||
188 | * |
||
189 | * @param \Laravel\Forge\Contracts\ApplicationContract $application |
||
190 | * |
||
191 | * @return bool |
||
192 | */ |
||
193 | public function uninstall(ApplicationContract $application) |
||
199 | |||
200 | /** |
||
201 | * Connect load balancer. |
||
202 | * |
||
203 | * @return bool |
||
204 | */ |
||
205 | public function balance(array $serverIds) |
||
213 | } |
||
214 |