Method: VMC::Client#app_pull
- Defined in:
- lib/vmc/client.rb
#app_pull(name, dir) ⇒ Object
171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/vmc/client.rb', line 171 def app_pull(name, dir) check_login_status url = path(VMC::APPS_PATH, name, "application") status, body, headers = http_get(url,'application/octet-stream') file = Tempfile.new(name) file.binmode file.write(body) file.close ::VMC::Cli::ZipUtil.unpack(file.path, dir) file.unlink end |