morpheus-cli 3.4.1.8 → 3.4.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/morpheus/api/tasks_interface.rb +2 -2
- data/lib/morpheus/cli/tasks.rb +6 -2
- data/lib/morpheus/cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c709b79d11fdd08c46b04e1b97f20011f4d20f42c5026699f2320b32fee2d7e6
|
4
|
+
data.tar.gz: 8a3f288fb1e022e7a314edd284a303298ff7dc7b9aed3d73e398994146ad8688
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3441ee39afec1b6c220c4bbd79379427c05a60dcbf859b2ed832a1a5e59b9487ac2e9bdfdd67e678b8a1838eddf1b524ff0d87887236ed9c1342174231c34dd2
|
7
|
+
data.tar.gz: 6c2a7490371a2e8adf4abf20e81491af89fe8349ce549611f8eac3eaa752e022c3977c1e0b99d57865c98e63f03f3aa62ed2b77ba1c1251cbcfaf9839bc5a0ea
|
@@ -51,9 +51,9 @@ class Morpheus::TasksInterface < Morpheus::APIClient
|
|
51
51
|
execute(method: :post, url: url, headers: headers, payload: payload.to_json)
|
52
52
|
end
|
53
53
|
|
54
|
-
def destroy(id)
|
54
|
+
def destroy(id, params={})
|
55
55
|
url = "#{@base_url}/api/tasks/#{id}"
|
56
|
-
headers = { :authorization => "Bearer #{@access_token}", 'Content-Type' => 'application/json' }
|
56
|
+
headers = { :params => params, :authorization => "Bearer #{@access_token}", 'Content-Type' => 'application/json' }
|
57
57
|
execute(method: :delete, url: url, headers: headers)
|
58
58
|
end
|
59
59
|
end
|
data/lib/morpheus/cli/tasks.rb
CHANGED
@@ -329,11 +329,15 @@ class Morpheus::Cli::Tasks
|
|
329
329
|
end
|
330
330
|
|
331
331
|
def remove(args)
|
332
|
+
params = {}
|
332
333
|
task_name = args[0]
|
333
334
|
options = {}
|
334
335
|
optparse = OptionParser.new do|opts|
|
335
336
|
opts.banner = subcommand_usage("[task]")
|
336
337
|
build_common_options(opts, options, [:auto_confirm, :json, :dry_run, :quiet, :remote])
|
338
|
+
opts.on( '-f', '--force', "Force Delete" ) do
|
339
|
+
params[:force] = true
|
340
|
+
end
|
337
341
|
end
|
338
342
|
optparse.parse!(args)
|
339
343
|
if args.count < 1
|
@@ -348,10 +352,10 @@ class Morpheus::Cli::Tasks
|
|
348
352
|
exit
|
349
353
|
end
|
350
354
|
if options[:dry_run]
|
351
|
-
print_dry_run @tasks_interface.dry.destroy(task['id'])
|
355
|
+
print_dry_run @tasks_interface.dry.destroy(task['id'], params)
|
352
356
|
return
|
353
357
|
end
|
354
|
-
json_response = @tasks_interface.destroy(task['id'])
|
358
|
+
json_response = @tasks_interface.destroy(task['id'], params)
|
355
359
|
if options[:json]
|
356
360
|
print JSON.pretty_generate(json_response),"\n"
|
357
361
|
elsif !options[:quiet]
|
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.4.1.
|
4
|
+
version: 3.4.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Estes
|
@@ -343,7 +343,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
343
343
|
version: '0'
|
344
344
|
requirements: []
|
345
345
|
rubyforge_project:
|
346
|
-
rubygems_version: 2.
|
346
|
+
rubygems_version: 2.7.6
|
347
347
|
signing_key:
|
348
348
|
specification_version: 4
|
349
349
|
summary: Provides CLI Interface to the Morpheus Public/Private Cloud Appliance
|