morpheus-cli 6.2.1 → 6.2.1.1

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
2
  SHA256:
3
- metadata.gz: 3ede124df9259964d52e159be3a4097dd21987e35a20423ef81c63efb65be54d
4
- data.tar.gz: 270fb5f083ecb5b7643aef13bb2b37e5e3ee02fd706ded8c394635376bbda14b
3
+ metadata.gz: 7c3a197cce2be26fa8c5920d9dcfb367edab10b100b645c02b171ce830e2eb7f
4
+ data.tar.gz: f8467d902d52c8238d3edeae9cf2c6a57eab41e693b76a2742230a9635aa7403
5
5
  SHA512:
6
- metadata.gz: 86475908b6b602bcb9185e1e4a3c554f7fdb581e010e6e7e49e075124eb24d087bde16d90cb07b8dd8cb944da9d1f7de34f9d3d4252c9859811c4e9acd51eb7c
7
- data.tar.gz: e1c6ed1cb7a06ec481687e516582131348a3f4292c618ebbe1a81c3b422e17d49f8ca85e65283d027e1516dd28c2ac35820691b90435a3933474c0ac44308c74
6
+ metadata.gz: 74ffa8dc07f0960f05790ae69568fbf9ae0b1afbe68bf7b8fea8dd532bd79a6cbafad4e1893c899b41fdef2c48fcb063d539f475b976ec72419279b77e312ce6
7
+ data.tar.gz: 7f512bfd99104a127d8e2f67976ad3f221ae9a3c35cf6dd70f7c6002f5b0fe494c961570cdb40ace71abbc3ccff2d09b3a3b582089fc83355da4d95f1fddf9d4
data/Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
1
  FROM ruby:2.7.5
2
2
 
3
- RUN gem install morpheus-cli -v 6.2.1
3
+ RUN gem install morpheus-cli -v 6.2.1.1
4
4
 
5
5
  ENTRYPOINT ["morpheus"]
@@ -46,22 +46,22 @@ class Morpheus::ServiceCatalogInterface < Morpheus::APIClient
46
46
  end
47
47
 
48
48
  # update cart (set cart name)
49
- def update_cart(payload, params={})
49
+ def update_cart(params, payload)
50
50
  execute(method: :put, url: "#{base_path}/cart", params: params, payload: payload.to_json)
51
51
  end
52
52
 
53
53
  # validate a new item, can be used before before adding it
54
- def validate_cart_item(payload, params={})
54
+ def validate_cart_item(params, payload)
55
55
  execute(method: :post, url: "#{base_path}/cart/items/validate", params: params, payload: payload.to_json)
56
56
  end
57
57
 
58
58
  # add item to cart
59
- def create_cart_item(payload, params={})
59
+ def create_cart_item(params, payload)
60
60
  execute(method: :post, url: "#{base_path}/cart/items", params: params, payload: payload.to_json)
61
61
  end
62
62
 
63
63
  # update item in the cart
64
- def update_cart_item(id, payload, params={})
64
+ def update_cart_item(id, params, payload)
65
65
  validate_id!(id)
66
66
  execute(method: :put, url: "#{base_path}/cart/items/#{id}", params: params, payload: payload.to_json)
67
67
  end
@@ -73,7 +73,7 @@ class Morpheus::ServiceCatalogInterface < Morpheus::APIClient
73
73
  end
74
74
 
75
75
  # place order with cart
76
- def checkout(payload, params={})
76
+ def checkout(params, payload)
77
77
  execute(method: :post, url: "#{base_path}/checkout", params: params, payload: payload.to_json)
78
78
  end
79
79
 
@@ -83,7 +83,7 @@ class Morpheus::ServiceCatalogInterface < Morpheus::APIClient
83
83
  end
84
84
 
85
85
  # create an order from scratch, without using a cart
86
- def create_order(payload, params={})
86
+ def create_order(params, payload)
87
87
  execute(method: :post, url: "#{base_path}/orders", params: params, payload: payload.to_json)
88
88
  end
89
89
  end
@@ -871,7 +871,7 @@ EOT
871
871
 
872
872
  @service_catalog_interface.setopts(options)
873
873
  if options[:dry_run]
874
- print_dry_run @service_catalog_interface.dry.checkout(payload)
874
+ print_dry_run @service_catalog_interface.dry.checkout(params, payload)
875
875
  return
876
876
  end
877
877
 
@@ -889,7 +889,7 @@ EOT
889
889
  unless options[:yes] || Morpheus::Cli::OptionTypes.confirm("Are you sure you want to checkout and place an order?")
890
890
  return 9, "aborted command"
891
891
  end
892
- json_response = @service_catalog_interface.checkout(payload, params)
892
+ json_response = @service_catalog_interface.checkout(params, payload)
893
893
  render_response(json_response, options) do
894
894
  print_green_success "Order placed"
895
895
  # ok so this is delayed because list does not return all statuses right now..
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Morpheus
3
3
  module Cli
4
- VERSION = "6.2.1"
4
+ VERSION = "6.2.1.1"
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: 6.2.1
4
+ version: 6.2.1.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: 2023-08-08 00:00:00.000000000 Z
14
+ date: 2023-09-07 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler