| @@ 136-144 (lines=9) @@ | ||
| 133 | unset($this->values[$offset]); |
|
| 134 | } |
|
| 135 | ||
| 136 | public function load() |
|
| 137 | { |
|
| 138 | $values = Httpie::get($this->get('master_url') . '/load') |
|
| 139 | ->body([ |
|
| 140 | 'host' => $this->get('alias'), |
|
| 141 | ]) |
|
| 142 | ->getJson(); |
|
| 143 | $this->update($values); |
|
| 144 | } |
|
| 145 | ||
| 146 | public function save() |
|
| 147 | { |
|
| @@ 146-154 (lines=9) @@ | ||
| 143 | $this->update($values); |
|
| 144 | } |
|
| 145 | ||
| 146 | public function save() |
|
| 147 | { |
|
| 148 | Httpie::get($this->get('master_url') . '/save') |
|
| 149 | ->body([ |
|
| 150 | 'host' => $this->get('alias'), |
|
| 151 | 'config' => $this->persist(), |
|
| 152 | ]) |
|
| 153 | ->getJson(); |
|
| 154 | } |
|
| 155 | ||
| 156 | public function persist() |
|
| 157 | { |
|