kaname 0.10.0 → 0.11.0

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: 9a293b68ca8e053514f8a8051dfa785f1fc9b61ebc5bda65e79a29a1bf77436a
4
- data.tar.gz: 339a79c55da688a118c8fc4e7d96bf45ea918bf37ef9713942b8e3a3ced95a25
3
+ metadata.gz: c61715cc4da9241493507fb1cf4d59c9a8ddca98246d761384a44ea0fe249394
4
+ data.tar.gz: 2f3cb7aa5e67bbcfbb720f172b29240b934b59492548b4e1be4f6eaebec9728e
5
5
  SHA512:
6
- metadata.gz: 761151f28f384715a4a9c82a934ebbdb2b04ffa3525e484f893933261d8208be3edf84fce8a8687b2d767b4266a14a2ce49ae12552ef0869f1f49a17dbe35b8c
7
- data.tar.gz: 288cdd835f9885af06a28f531b4853eed6b933b5535107ccd09bf6fdc49d9af36f07352ce91758147d43071ecd1d631a272856d86e2f2b78311d90475675f871
6
+ metadata.gz: 9a6ed695e6f33983e507327e4773d13dd1d53c862ca5e5952e10f80f895a9f12be4c6e9cc86abecc72308036db12231296814d17458e1a517f6fb815176aba55
7
+ data.tar.gz: de6ac80f0a1aea021bb6ff20af1ae37701f06f7afbd7749326999472f872b1637dbc4aa86fa9d232521f57ce406324b520cb40817511a0afc8b877b2a43946df
data/lib/kaname/cli.rb CHANGED
@@ -21,8 +21,11 @@ module Kaname
21
21
 
22
22
  option :dryrun, type: :boolean
23
23
  option :filename, aliases: :f, type: :string, default: 'keystone.yml'
24
+ option :password_length, aliases: :L, type: :numeric, default: 14
24
25
  desc 'apply', 'Commands about configuration apply'
25
26
  def apply
27
+ Generator.password_length = options[:password_length]
28
+
26
29
  adapter = if options[:dryrun]
27
30
  Kaname::Adapter::ReadOnly.new
28
31
  else
@@ -3,8 +3,16 @@ require 'securerandom'
3
3
  module Kaname
4
4
  class Generator
5
5
  class << self
6
+ def password_length
7
+ @password_length ||= 14
8
+ end
9
+
10
+ def password_length=(length)
11
+ @password_length = length
12
+ end
13
+
6
14
  def password
7
- SecureRandom.base64(6)
15
+ SecureRandom.base64(@password_length)
8
16
  end
9
17
  end
10
18
  end
@@ -1,3 +1,3 @@
1
1
  module Kaname
2
- VERSION = "0.10.0"
2
+ VERSION = "0.11.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kaname
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - SHIBATA Hiroshi
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2023-06-20 00:00:00.000000000 Z
10
+ date: 2025-03-05 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: yao
@@ -182,7 +181,6 @@ homepage: https://github.com/yaocloud/kaname
182
181
  licenses:
183
182
  - MIT
184
183
  metadata: {}
185
- post_install_message:
186
184
  rdoc_options: []
187
185
  require_paths:
188
186
  - lib
@@ -197,8 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
195
  - !ruby/object:Gem::Version
198
196
  version: '0'
199
197
  requirements: []
200
- rubygems_version: 3.4.10
201
- signing_key:
198
+ rubygems_version: 3.6.2
202
199
  specification_version: 4
203
200
  summary: Identity configuration tool for OpenStack.
204
201
  test_files: []