hammer_cli_foreman_google 0.0.1 → 1.0.1
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:
|
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
|
@@ -25,8 +25,6 @@ module HammerCLIForemanGoogle
|
|
25
25
|
|
26
26
|
def provider_specific_fields
|
27
27
|
[
|
28
|
-
Fields::Field.new(label: _('Project'), path: [:project]),
|
29
|
-
Fields::Field.new(label: _('Email'), path: [:email]),
|
30
28
|
Fields::Field.new(label: _('Key Path'), path: [:key_path]),
|
31
29
|
Fields::Field.new(label: _('Zone'), path: [:zone])
|
32
30
|
]
|
@@ -42,7 +40,7 @@ module HammerCLIForemanGoogle
|
|
42
40
|
end
|
43
41
|
|
44
42
|
def mandatory_resource_options
|
45
|
-
super + %i[
|
43
|
+
super + %i[key_path zone]
|
46
44
|
end
|
47
45
|
end
|
48
46
|
end
|
@@ -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:
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Foreman Team
|
8
|
-
autorequire:
|
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
|
@@ -58,7 +58,7 @@ dependencies:
|
|
58
58
|
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '0'
|
61
|
-
description:
|
61
|
+
description:
|
62
62
|
email:
|
63
63
|
- dev@community.theforeman.org
|
64
64
|
executables: []
|
@@ -70,12 +70,13 @@ 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:
|
76
77
|
- GPL-3.0
|
77
78
|
metadata: {}
|
78
|
-
post_install_message:
|
79
|
+
post_install_message:
|
79
80
|
rdoc_options: []
|
80
81
|
require_paths:
|
81
82
|
- lib
|
@@ -90,8 +91,8 @@ 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
|
-
signing_key:
|
94
|
+
rubygems_version: 3.3.26
|
95
|
+
signing_key:
|
95
96
|
specification_version: 4
|
96
97
|
summary: Foreman Google plugin for Hammer CLI
|
97
98
|
test_files: []
|