cf-copilot 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cf-copilot.rb +4 -4
- data/lib/copilot/protos/cloud_controller_pb.rb +1 -0
- data/lib/copilot/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c80431d4b64e781a4d9584982ebb539886ad282
|
4
|
+
data.tar.gz: 225d49a0f05050accfae05b4df68d45e8d6b951e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 487a0fe583e56791ff00b68fce3e457fc0178690b689db5cbbb993c631c33cd9dc1ea3a9b270f5f85f21cb14f32eea45fda31252357c093724647ec94bbdf2dc
|
7
|
+
data.tar.gz: aca51603f1c4921a84151d547c901dcf051bb2e8a7f092830ad24dcdbc12f668036fa16d0af88c991503ec095e5a30906ceef119745de2b7440c66b0dcbf0273
|
data/lib/cf-copilot.rb
CHANGED
@@ -42,16 +42,16 @@ module Cloudfoundry
|
|
42
42
|
raise Cloudfoundry::Copilot::Client::PilotError, "#{e.details} - #{e.metadata}"
|
43
43
|
end
|
44
44
|
|
45
|
-
def map_route(capi_process_guid:, route_guid:, route_weight:)
|
46
|
-
route_mapping = Api::RouteMapping.new(capi_process_guid: capi_process_guid, route_guid: route_guid, route_weight: route_weight)
|
45
|
+
def map_route(capi_process_guid:, route_guid:, route_weight:, app_port:)
|
46
|
+
route_mapping = Api::RouteMapping.new(capi_process_guid: capi_process_guid, route_guid: route_guid, route_weight: route_weight, app_port: app_port)
|
47
47
|
request = Api::MapRouteRequest.new(route_mapping: route_mapping)
|
48
48
|
service.map_route(request)
|
49
49
|
rescue GRPC::BadStatus => e
|
50
50
|
raise Cloudfoundry::Copilot::Client::PilotError, "#{e.details} - #{e.metadata}"
|
51
51
|
end
|
52
52
|
|
53
|
-
def unmap_route(capi_process_guid:, route_guid:, route_weight:)
|
54
|
-
route_mapping = Api::RouteMapping.new(capi_process_guid: capi_process_guid, route_guid: route_guid, route_weight: route_weight)
|
53
|
+
def unmap_route(capi_process_guid:, route_guid:, route_weight:, app_port:)
|
54
|
+
route_mapping = Api::RouteMapping.new(capi_process_guid: capi_process_guid, route_guid: route_guid, route_weight: route_weight, app_port: app_port)
|
55
55
|
request = Api::UnmapRouteRequest.new(route_mapping: route_mapping)
|
56
56
|
service.unmap_route(request)
|
57
57
|
rescue GRPC::BadStatus => e
|
@@ -43,6 +43,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
43
43
|
optional :capi_process_guid, :string, 1
|
44
44
|
optional :route_guid, :string, 2
|
45
45
|
optional :route_weight, :int32, 3
|
46
|
+
optional :app_port, :int32, 4
|
46
47
|
end
|
47
48
|
add_message "api.MapRouteRequest" do
|
48
49
|
optional :route_mapping, :message, 1, "api.RouteMapping"
|
data/lib/copilot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cf-copilot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cloud Foundry Routing Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 2.0.1
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 2.0.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: pry
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|