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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ebdd8f28720f1f877bd5980b514e21f893fc729b
4
- data.tar.gz: ef5214cf5d19f36bddea913af76af02b06b481a7
3
+ metadata.gz: 1c80431d4b64e781a4d9584982ebb539886ad282
4
+ data.tar.gz: 225d49a0f05050accfae05b4df68d45e8d6b951e
5
5
  SHA512:
6
- metadata.gz: f067cc538457570894890080a75ef2350b4d8d229f3161a4b5d610c70a418e7e17ea52ec9df87924403e00eee1bb08f5c80d97754a0bd1520e8f7c69c922d474
7
- data.tar.gz: 183463bc6fedfc8a460c2348b8a896a4fb6d5b5a58535be1f5ba0293609e7ca843cf39754159c5d3c25e94bf8f2e963e1cdcab07fa7c620993e931031fe2cdf5
6
+ metadata.gz: 487a0fe583e56791ff00b68fce3e457fc0178690b689db5cbbb993c631c33cd9dc1ea3a9b270f5f85f21cb14f32eea45fda31252357c093724647ec94bbdf2dc
7
+ data.tar.gz: aca51603f1c4921a84151d547c901dcf051bb2e8a7f092830ad24dcdbc12f668036fa16d0af88c991503ec095e5a30906ceef119745de2b7440c66b0dcbf0273
@@ -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"
@@ -1,5 +1,5 @@
1
1
  module Cloudfoundry
2
2
  module Copilot
3
- VERSION = '0.0.11'.freeze
3
+ VERSION = '0.0.12'.freeze
4
4
  end
5
5
  end
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.11
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: 2018-11-30 00:00:00.000000000 Z
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: '1.16'
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: '1.16'
40
+ version: 2.0.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pry
43
43
  requirement: !ruby/object:Gem::Requirement