hammer_cli_foreman_google 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hammer_cli_foreman_google/i18n.rb +33 -0
- data/lib/hammer_cli_foreman_google/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 585ebfe55c60683e0a7334c0ced718f0cae588c9324468214a939e17afa4cfc1
|
4
|
+
data.tar.gz: 216eaf31e6a8d7685455a56b351c09a8b6c40b30063b7877f86b3d2c0a2bce9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4266290acaef964ef7b9b1eec643de4995e90f1fc13e3052b0f673daadb79d3f11f27e1365e1be2f54fd929a628e32c694cda70b295c492564ccb66261a89227
|
7
|
+
data.tar.gz: 0f5c899e099c8fc675bd69394647c03dc26c6696debebc708a60bf57a499161932a6381999164b8c5c8675f87ec54934834ad7368a9261dc78840bb6bbda449a
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'hammer_cli/i18n'
|
2
|
+
|
3
|
+
module HammerCLIForemanGoogle
|
4
|
+
module I18n
|
5
|
+
|
6
|
+
class LocaleDomain < HammerCLI::I18n::LocaleDomain
|
7
|
+
|
8
|
+
def translated_files
|
9
|
+
Dir.glob(File.join(__dir__, '../**/*.rb'))
|
10
|
+
end
|
11
|
+
|
12
|
+
def locale_dir
|
13
|
+
File.join(__dir__, '../../locale')
|
14
|
+
end
|
15
|
+
|
16
|
+
def domain_name
|
17
|
+
'hammer-cli-foreman-google'
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
class SystemLocaleDomain < LocaleDomain
|
22
|
+
|
23
|
+
def locale_dir
|
24
|
+
'/usr/share/locale'
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
domain = [HammerCLIForemanGoogle::I18n::LocaleDomain.new, HammerCLIForemanGoogle::I18n::SystemLocaleDomain.new].find { |d| d.available? }
|
33
|
+
HammerCLI::I18n.add_domain(domain) if domain
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hammer_cli_foreman_google
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Foreman Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hammer_cli_foreman
|
@@ -70,6 +70,7 @@ files:
|
|
70
70
|
- config/foreman_google.yml
|
71
71
|
- lib/hammer_cli_foreman_google.rb
|
72
72
|
- lib/hammer_cli_foreman_google/compute_resources/google.rb
|
73
|
+
- lib/hammer_cli_foreman_google/i18n.rb
|
73
74
|
- lib/hammer_cli_foreman_google/version.rb
|
74
75
|
homepage: https://github.com/theforeman/hammer-cli-foreman-google
|
75
76
|
licenses:
|
@@ -90,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
91
|
- !ruby/object:Gem::Version
|
91
92
|
version: '0'
|
92
93
|
requirements: []
|
93
|
-
rubygems_version: 3.
|
94
|
+
rubygems_version: 3.3.26
|
94
95
|
signing_key:
|
95
96
|
specification_version: 4
|
96
97
|
summary: Foreman Google plugin for Hammer CLI
|