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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c3a197cce2be26fa8c5920d9dcfb367edab10b100b645c02b171ce830e2eb7f
|
4
|
+
data.tar.gz: f8467d902d52c8238d3edeae9cf2c6a57eab41e693b76a2742230a9635aa7403
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74ffa8dc07f0960f05790ae69568fbf9ae0b1afbe68bf7b8fea8dd532bd79a6cbafad4e1893c899b41fdef2c48fcb063d539f475b976ec72419279b77e312ce6
|
7
|
+
data.tar.gz: 7f512bfd99104a127d8e2f67976ad3f221ae9a3c35cf6dd70f7c6002f5b0fe494c961570cdb40ace71abbc3ccff2d09b3a3b582089fc83355da4d95f1fddf9d4
|
data/Dockerfile
CHANGED
@@ -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(
|
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(
|
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(
|
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,
|
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(
|
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(
|
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(
|
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..
|
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: 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-
|
14
|
+
date: 2023-09-07 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|