morpheus-cli 3.4.1.8 → 3.4.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 5ee0325b5e75255be6989824fb6829d4e476f66c
4
- data.tar.gz: df56ecf91706de1fc6458ae456ad2c25d405efc3
2
+ SHA256:
3
+ metadata.gz: c709b79d11fdd08c46b04e1b97f20011f4d20f42c5026699f2320b32fee2d7e6
4
+ data.tar.gz: 8a3f288fb1e022e7a314edd284a303298ff7dc7b9aed3d73e398994146ad8688
5
5
  SHA512:
6
- metadata.gz: dc3b5d10c9b8d1f8418d44af440258887c83256f2bc3f3b97a8c5d2a0032fbe602e544fb94055e5e150982fb96651e17468d4e7860b85f4c141dd2765ff39801
7
- data.tar.gz: 91c33a1c19eee3ced925ce46b3e765480302468a1bffe7be1ef9825a8a57b62e6dda541cdc97f227510d0da1d4d7e8d09df9ce96c1034ebe254ada1d343e2285
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
@@ -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]
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Morpheus
3
3
  module Cli
4
- VERSION = "3.4.1.8"
4
+ VERSION = "3.4.1.9"
5
5
  end
6
6
  end
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.8
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.5.1
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