morpheus-cli 3.6.0 → 3.6.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7dcc836533eb2ee562132b47ff16c4fe83e6f7cc3b901e34527e5ba9ccf0b10f
|
4
|
+
data.tar.gz: 32e8ac970752cf8584f432af02908ffa6f238dc69ecee40cc85c4308baec9d75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff3196dabce7253348d7fe48a3bce8ebbbccb1801ba6d666cbb141c8825c473033c2c69626d23dfa3f22d91c3aef708b88c23de471a6610965d826ac85294cf3
|
7
|
+
data.tar.gz: b28bb8057de9ba759c6d889f6bc403ea92d323fb5dbedda3ff81653ce1705c0eecd39c02d25bc8ae7f1b83ac699bcc295d8be21075aa0a3e2dc4dfc8c326ae43
|
@@ -82,13 +82,13 @@ class Morpheus::ArchiveBucketsInterface < Morpheus::APIClient
|
|
82
82
|
end
|
83
83
|
payload = local_file
|
84
84
|
headers['Content-Length'] = local_file.size # File.size(local_file)
|
85
|
-
execute(method: :post, url: url, headers: headers, payload: payload)
|
85
|
+
execute(method: :post, url: url, headers: headers, payload: payload, timeout: 172800)
|
86
86
|
end
|
87
87
|
|
88
88
|
def download_bucket_zip_chunked(bucket_id, outfile, params={})
|
89
89
|
url = "#{@base_url}/api/archives/buckets/#{URI.escape(bucket_id.to_s)}" + ".zip"
|
90
90
|
headers = { params: params, authorization: "Bearer #{@access_token}" }
|
91
|
-
opts = {method: :get, url: url, headers: headers}
|
91
|
+
opts = {method: :get, url: url, headers: headers, timeout: 172800}
|
92
92
|
# execute(opts, false)
|
93
93
|
if Dir.exists?(outfile)
|
94
94
|
raise "outfile is invalid. It is the name of an existing directory: #{outfile}"
|
@@ -20,7 +20,7 @@ class Morpheus::ArchiveFilesInterface < Morpheus::APIClient
|
|
20
20
|
raise "#{self.class}.download_file_by_path() passed a blank file path!" if full_file_path.to_s == ''
|
21
21
|
url = "#{@base_url}/api/archives/download" + "/#{full_file_path}".squeeze('/')
|
22
22
|
headers = { params: params, authorization: "Bearer #{@access_token}" }
|
23
|
-
opts = {method: :get, url: url, headers: headers}
|
23
|
+
opts = {method: :get, url: url, headers: headers, timeout: 172800}
|
24
24
|
execute(opts, false)
|
25
25
|
end
|
26
26
|
|
@@ -28,7 +28,7 @@ class Morpheus::ArchiveFilesInterface < Morpheus::APIClient
|
|
28
28
|
raise "#{self.class}.download_file_by_path_chunked() passed a blank file path!" if full_file_path.to_s == ''
|
29
29
|
url = "#{@base_url}/api/archives/download" + "/#{full_file_path}".squeeze('/')
|
30
30
|
headers = { params: params, authorization: "Bearer #{@access_token}" }
|
31
|
-
opts = {method: :get, url: url, headers: headers}
|
31
|
+
opts = {method: :get, url: url, headers: headers, timeout: 172800}
|
32
32
|
# execute(opts, false)
|
33
33
|
if Dir.exists?(outfile)
|
34
34
|
raise "outfile is invalid. It is the name of an existing directory: #{outfile}"
|
@@ -58,7 +58,7 @@ class Morpheus::ArchiveFilesInterface < Morpheus::APIClient
|
|
58
58
|
raise "#{self.class}.download_public_file_by_path_chunked() passed a blank file path!" if full_file_path.to_s == ''
|
59
59
|
url = "#{@base_url}/public-archives/download" + "/#{full_file_path}".squeeze('/')
|
60
60
|
headers = { params: params, authorization: "Bearer #{@access_token}" }
|
61
|
-
opts = {method: :get, url: url, headers: headers}
|
61
|
+
opts = {method: :get, url: url, headers: headers, timeout: 172800}
|
62
62
|
# execute(opts, false)
|
63
63
|
if Dir.exists?(outfile)
|
64
64
|
raise "outfile is invalid. It is the name of an existing directory: #{outfile}"
|
@@ -89,7 +89,7 @@ class Morpheus::ArchiveFilesInterface < Morpheus::APIClient
|
|
89
89
|
url = "#{@base_url}/public-archives/link"
|
90
90
|
params['s'] = link_key
|
91
91
|
headers = { params: params, authorization: "Bearer #{@access_token}" }
|
92
|
-
opts = {method: :get, url: url, headers: headers}
|
92
|
+
opts = {method: :get, url: url, headers: headers, timeout: 172800}
|
93
93
|
# execute(opts, false)
|
94
94
|
if Dir.exists?(outfile)
|
95
95
|
raise "outfile is invalid. It is the name of an existing directory: #{outfile}"
|
@@ -161,7 +161,7 @@ class Morpheus::VirtualImagesInterface < Morpheus::APIClient
|
|
161
161
|
headers = { :params => {}, :authorization => "Bearer #{@access_token}", 'Content-Type' => 'application/octet-stream'}
|
162
162
|
headers[:params][:url] = file_url
|
163
163
|
headers[:params][:filename] = filename if filename
|
164
|
-
execute(method: :post, url: url, headers: headers, timeout:
|
164
|
+
execute(method: :post, url: url, headers: headers, timeout: 172800)
|
165
165
|
end
|
166
166
|
|
167
167
|
def destroy_file(id, filename)
|
data/lib/morpheus/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: morpheus-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.6.
|
4
|
+
version: 3.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Estes
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2019-01-
|
14
|
+
date: 2019-01-14 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|