chef-licensing 0.4.43 → 0.4.44

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
  SHA256:
3
- metadata.gz: 964f7cfe2142120460f62fe5d859ed5a1fee820b023a66d79d9a5e993a3f83aa
4
- data.tar.gz: 51459f83f1c053b6da1ef961e550951ed709e1f87cc5ff8dc8e84f2ac3a1f76d
3
+ metadata.gz: daba1b4af5298de677c11ea6bdfa10fe560e94f3dc26ba60e68f887be5d3d187
4
+ data.tar.gz: c45e92d1bba749e0aff95328df2b35bcba959022584cc07ad2e475f8a89be945
5
5
  SHA512:
6
- metadata.gz: 57a658f34d4d126b60311613f0ca6b8973fd29b3be180cc7082023c51aeef4f02ce2fa8f132e18ae2574137d97fe1da27f3ad2bd66e787d038fd4ded954d07c5
7
- data.tar.gz: aaa6881007ef1f2377dfe2cce95cf46114a2743d0568e2776777d9ebafe6c49af540c29d2b97678dade43e0634dc018d89bd719f19bc6102189bb957f6f60d45
6
+ metadata.gz: c0ff4a1cf85a1155badc2f18f1e31be42745c8952c495b87ab9af8067d13a3b2568e009c6a9bb0b1abf7812317994cf38d388c0220673e0a2027b590dbab26a8
7
+ data.tar.gz: bf7296fdb8806695442b1b19d9968853984def094d126134e03774ec9bfed481cf8a66306848743a8b2c970f35b05dc6708583fe01a8222907435ce96da96ec2
@@ -92,7 +92,7 @@ interactions:
92
92
 
93
93
  Get a Commercial License to receive bug fixes, updates
94
94
  and new features.
95
- Get a Free License to scan limited targets.
95
+ Get a Free License to scan limited <%= input[:unit_measure] %>.
96
96
 
97
97
  To get a new license, run <%= input[:pastel].bold("#{ChefLicensing::Config.chef_executable_name} license add")%>
98
98
  and select a license type.
@@ -107,7 +107,7 @@ interactions:
107
107
 
108
108
  Get a Commercial License to receive bug fixes, updates
109
109
  and new features.
110
- Get a Free License to scan limited targets.
110
+ Get a Free License to scan limited <%= input[:unit_measure] %>.
111
111
  ------------------------------------------------------------
112
112
  prompt_type: "say"
113
113
  paths: [fetch_license_id]
@@ -257,13 +257,14 @@ interactions:
257
257
  prompt_type: "select"
258
258
  messages: ["Select the type of license below and then enter user details\n" ,
259
259
  [
260
- "1. Free License\n Validity: Unlimited\n No. of targets: 10\n",
260
+ "1. Free License\n Validity: Unlimited\n No. of units: 10 <%= input[:unit_measure] %>\n",
261
261
  "2. Commercial License\n",
262
262
  "3. Quit license generation"
263
263
  ]]
264
264
  paths: [free_license_disclaimer, commercial_license_selection, exit]
265
265
  response_path_map:
266
- "1. Free License\n Validity: Unlimited\n No. of targets: 10\n": free_license_disclaimer
266
+ "1. Free License\n Validity: Unlimited\n No. of units: 10 nodes\n": free_license_disclaimer
267
+ "1. Free License\n Validity: Unlimited\n No. of units: 10 targets\n": free_license_disclaimer
267
268
  "2. Commercial License\n": commercial_license_selection
268
269
  "3. Quit license generation": exit
269
270
 
@@ -271,13 +272,14 @@ interactions:
271
272
  prompt_type: "select"
272
273
  messages: ["Select the type of license below and then enter user details\n" ,
273
274
  [
274
- "1. Trial License\n Validity: 30 Days\n No. of targets: Unlimited\n",
275
+ "1. Trial License\n Validity: 30 Days\n No. of units: Unlimited <%= input[:unit_measure] %>\n",
275
276
  "2. Commercial License\n",
276
277
  "3. Quit license generation"
277
278
  ]]
278
279
  paths: [trial_license_selection, commercial_license_selection, exit]
279
280
  response_path_map:
280
- "1. Trial License\n Validity: 30 Days\n No. of targets: Unlimited\n": trial_license_selection
281
+ "1. Trial License\n Validity: 30 Days\n No. of units: Unlimited nodes\n": trial_license_selection
282
+ "1. Trial License\n Validity: 30 Days\n No. of units: Unlimited targets\n": trial_license_selection
281
283
  "2. Commercial License\n": commercial_license_selection
282
284
  "3. Quit license generation": exit
283
285
 
@@ -285,15 +287,17 @@ interactions:
285
287
  prompt_type: "select"
286
288
  messages: ["Select the type of license below and then enter user details\n" ,
287
289
  [
288
- "1. Free License\n Validity: Unlimited\n No. of targets: 10\n",
289
- "2. Trial License\n Validity: 30 Days\n No. of targets: Unlimited\n",
290
+ "1. Free License\n Validity: Unlimited\n No. of units: 10 <%= input[:unit_measure] %>\n",
291
+ "2. Trial License\n Validity: 30 Days\n No. of units: Unlimited <%= input[:unit_measure] %>\n",
290
292
  "3. Commercial License\n",
291
293
  "4. Quit license generation"
292
294
  ]]
293
295
  paths: [free_license_disclaimer, commercial_license_selection, trial_license_selection, exit]
294
296
  response_path_map:
295
- "1. Free License\n Validity: Unlimited\n No. of targets: 10\n": free_license_disclaimer
296
- "2. Trial License\n Validity: 30 Days\n No. of targets: Unlimited\n": trial_license_selection
297
+ "1. Free License\n Validity: Unlimited\n No. of units: 10 nodes\n": free_license_disclaimer
298
+ "1. Free License\n Validity: Unlimited\n No. of units: 10 targets\n": free_license_disclaimer
299
+ "2. Trial License\n Validity: 30 Days\n No. of units: Unlimited nodes\n": trial_license_selection
300
+ "2. Trial License\n Validity: 30 Days\n No. of units: Unlimited targets\n": trial_license_selection
297
301
  "3. Commercial License\n": commercial_license_selection
298
302
  "4. Quit license generation": exit
299
303
 
@@ -303,12 +307,12 @@ interactions:
303
307
  paths: [free_license_selection]
304
308
 
305
309
  free_license_selection:
306
- messages: "Type: Free License\n Validity: Unlimited\n No. of targets: 10\n"
310
+ messages: "Type: Free License\n Validity: Unlimited\n No. of units: 10 <%= input[:unit_measure] %>\n"
307
311
  prompt_type: "silent"
308
312
  paths: [check_if_user_details_are_present]
309
313
 
310
314
  trial_license_selection:
311
- messages: "Type: Trial License\n Validity: 30 days\n No. of targets: Unlimited\n"
315
+ messages: "Type: Trial License\n Validity: 30 days\n No. of units: Unlimited <%= input[:unit_measure] %>\n"
312
316
  prompt_type: "silent"
313
317
  paths: [check_if_user_details_are_present]
314
318
 
@@ -189,6 +189,8 @@ module ChefLicensing
189
189
 
190
190
  # default values
191
191
  extra_info[:chef_product_name] = ChefLicensing::Config.chef_product_name&.capitalize
192
+ # Note: The unit measure is decided by the UX/Product.
193
+ extra_info[:unit_measure] = ChefLicensing::Config.chef_product_name&.downcase == "inspec" ? "targets" : "nodes"
192
194
  if license
193
195
  extra_info[:license_type] = license.license_type.capitalize
194
196
  extra_info[:number_of_days_in_expiration] = license.number_of_days_in_expiration
@@ -1,3 +1,3 @@
1
1
  module ChefLicensing
2
- VERSION = "0.4.43".freeze
2
+ VERSION = "0.4.44".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-licensing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.43
4
+ version: 0.4.44
5
5
  platform: ruby
6
6
  authors:
7
7
  - Inspec Team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-06 00:00:00.000000000 Z
11
+ date: 2023-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef-config
@@ -169,7 +169,7 @@ licenses:
169
169
  metadata:
170
170
  homepage_uri: https://github.com/chef/chef-licensing
171
171
  source_code_uri: https://github.com/chef/chef-licensing
172
- post_install_message:
172
+ post_install_message:
173
173
  rdoc_options: []
174
174
  require_paths:
175
175
  - lib
@@ -184,8 +184,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
184
184
  - !ruby/object:Gem::Version
185
185
  version: '0'
186
186
  requirements: []
187
- rubygems_version: 3.3.7
188
- signing_key:
187
+ rubygems_version: 3.1.4
188
+ signing_key:
189
189
  specification_version: 4
190
190
  summary: Chef License storage, generation, and entitlement
191
191
  test_files: []