aptible-cli 0.24.8 → 0.24.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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/aptible/cli/helpers/vhost/option_set_builder.rb +16 -0
- data/lib/aptible/cli/resource_formatter.rb +1 -0
- data/lib/aptible/cli/subcommands/endpoints.rb +2 -0
- data/lib/aptible/cli/version.rb +1 -1
- data/spec/aptible/cli/resource_formatter_spec.rb +3 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6eb51d67be8b4afcf1d4c56bcf323b44b0f866cb7a0d6de8825cd4bf6c59e152
|
4
|
+
data.tar.gz: 4f79b328a9db799239eb1f9390dd8ff99525351b9003b687c3eefce086333bbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8c872499c77e46408a857a590995f88e4444b1c70c2965ea2737209055fdfdf68f460757b82f9699188fda5e7c178319f575a7f7c9bb29e009b8d5c1848e05a
|
7
|
+
data.tar.gz: 8f0a4c1652ad64dd978ebd56bb768f1404d32e44db93b6072a204202b8000605116d9a8109c922e05cbeae2be6f2ee584ac6a46792c4989e59303a9d0e65dadb
|
data/Gemfile.lock
CHANGED
@@ -12,6 +12,7 @@ module Aptible
|
|
12
12
|
ports
|
13
13
|
port
|
14
14
|
alb
|
15
|
+
shared
|
15
16
|
).freeze
|
16
17
|
|
17
18
|
def initialize(&block)
|
@@ -122,6 +123,15 @@ module Aptible
|
|
122
123
|
'on this Endpoint'
|
123
124
|
)
|
124
125
|
end
|
126
|
+
|
127
|
+
if builder.shared?
|
128
|
+
option(
|
129
|
+
:shared,
|
130
|
+
type: :boolean,
|
131
|
+
desc: "Share this Endpoint's load balancer with other " \
|
132
|
+
'Endpoints'
|
133
|
+
)
|
134
|
+
end
|
125
135
|
end
|
126
136
|
end
|
127
137
|
|
@@ -192,6 +202,12 @@ module Aptible
|
|
192
202
|
end
|
193
203
|
params[:load_balancing_algorithm_type] = lba_type
|
194
204
|
end
|
205
|
+
|
206
|
+
if shared?
|
207
|
+
params[:shared] = options.delete(:shared) do
|
208
|
+
create? ? false : nil
|
209
|
+
end
|
210
|
+
end
|
195
211
|
end
|
196
212
|
|
197
213
|
options.delete(:environment)
|
@@ -160,6 +160,7 @@ module Aptible
|
|
160
160
|
port!
|
161
161
|
tls!
|
162
162
|
alb!
|
163
|
+
shared!
|
163
164
|
end
|
164
165
|
|
165
166
|
desc 'endpoints:https:create [--app APP] SERVICE',
|
@@ -179,6 +180,7 @@ module Aptible
|
|
179
180
|
port!
|
180
181
|
tls!
|
181
182
|
alb!
|
183
|
+
shared!
|
182
184
|
end
|
183
185
|
|
184
186
|
desc 'endpoints:https:modify [--app APP] ENDPOINT_HOSTNAME',
|
data/lib/aptible/cli/version.rb
CHANGED
@@ -21,7 +21,8 @@ describe Aptible::CLI::ResourceFormatter do
|
|
21
21
|
ip_whitelist: [],
|
22
22
|
default: false,
|
23
23
|
acme: false,
|
24
|
-
load_balancing_algorithm_type: 'least_outstanding_requests'
|
24
|
+
load_balancing_algorithm_type: 'least_outstanding_requests',
|
25
|
+
shared: false
|
25
26
|
)
|
26
27
|
|
27
28
|
expected = [
|
@@ -32,6 +33,7 @@ describe Aptible::CLI::ResourceFormatter do
|
|
32
33
|
'Type: https',
|
33
34
|
'Port: default',
|
34
35
|
'Load Balancing Algorithm Type: least_outstanding_requests',
|
36
|
+
'Shared: false',
|
35
37
|
'Internal: false',
|
36
38
|
'IP Whitelist: all traffic',
|
37
39
|
'Default Domain Enabled: false',
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aptible-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.24.
|
4
|
+
version: 0.24.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frank Macreery
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -586,7 +586,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
586
586
|
- !ruby/object:Gem::Version
|
587
587
|
version: '0'
|
588
588
|
requirements: []
|
589
|
-
rubygems_version: 3.1
|
589
|
+
rubygems_version: 3.0.3.1
|
590
590
|
signing_key:
|
591
591
|
specification_version: 4
|
592
592
|
summary: Command-line interface for Aptible services
|