hammer_cli_foreman_azure_rm 0.1.2 → 0.2.0

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: aa3f3df335172f5cf90df195bdc8698783eb975191a9bdfae8071f2063a153aa
4
- data.tar.gz: e3865598912b58b079cb073e4582e755cf7f3dc72489f72a7d7a4fe4544f609b
3
+ metadata.gz: eff9c1b6dd2b11e52896809060e18adad439910f1c9ee8d236a61a538ad7ab95
4
+ data.tar.gz: 110985599e92cb5f0c50a9636fabe877d07b3a346447b41ac4392dd15e992132
5
5
  SHA512:
6
- metadata.gz: 505ef40b81ce1f9353df06020b4ee955cc8a53c227a18736b71cce6ac6db785ba4b9e6c55c21844136699677fe6cf21bfd76a40e665b1c56ea5940c17157a981
7
- data.tar.gz: fae65a2841424d28111232549f3a3c14aa1432d0c9fa36e30ac862dae9c53e4214fdf5ad2fdb340e279d78313164671461f0d9c05987689fe169f32853db171a
6
+ metadata.gz: b77570daeccb1da1337652edd2604997cf77812a640929ba024c0011bed3b59c31290c95a3f3b013d04bbd6d81edbfe4cd4ec20efa2987457447cfd0065ad4be
7
+ data.tar.gz: f608507269a13d4fc81afdbc78f406abb6750138df2d284090f161be91f244e72026826fe161d10aa15f2f4501627d9819994e24c3b47454bcdd75a833bfa75a
@@ -1,6 +1,7 @@
1
- module HammerCLIForemanAzureRM
1
+ module HammerCLIForemanAzureRm
2
+ require 'hammer_cli_foreman_azure_rm/version'
2
3
  require 'hammer_cli_foreman_azure_rm/compute_resources/azure_rm'
3
4
  require 'hammer_cli_foreman/compute_resource/register_compute_resources'
4
5
 
5
- HammerCLIForeman.register_compute_resource('azurerm', HammerCLIForemanAzureRM::ComputeResources::AzureRM.new)
6
- end
6
+ HammerCLIForeman.register_compute_resource('azurerm', HammerCLIForemanAzureRm::ComputeResources::AzureRm.new)
7
+ end
@@ -1,8 +1,8 @@
1
1
  require 'hammer_cli_foreman/compute_resource/base'
2
2
 
3
- module HammerCLIForemanAzureRM
3
+ module HammerCLIForemanAzureRm
4
4
  module ComputeResources
5
- class AzureRM < HammerCLIForeman::ComputeResources::Base
5
+ class AzureRm < HammerCLIForeman::ComputeResources::Base
6
6
  def name
7
7
  _('AzureRM')
8
8
  end
@@ -30,6 +30,13 @@ module HammerCLIForemanAzureRM
30
30
  ]
31
31
  end
32
32
 
33
+ def volume_attributes
34
+ [
35
+ ['disk_size_gb', _('Volume Size in GB (integer value)')],
36
+ ['data_disk_caching', _('Data Disk Caching (None, ReadOnly, ReadWrite)')]
37
+ ]
38
+ end
39
+
33
40
  def provider_specific_fields
34
41
  [
35
42
  Fields::Field.new(:label => _('tenant'), :path => [:tenant]),
@@ -44,4 +51,4 @@ module HammerCLIForemanAzureRM
44
51
  end
45
52
  end
46
53
  end
47
- end
54
+ end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'hammer_cli/i18n'
4
+ module HammerCLIForemanAzureRm
5
+ module I18n
6
+ class LocaleDomain < HammerCLI::I18n::LocaleDomain
7
+ def translated_files
8
+ Dir.glob(File.join(File.dirname(__FILE__), '../**/*.rb'))
9
+ end
10
+
11
+ def locale_dir
12
+ File.join(File.dirname(__FILE__), '../../locale')
13
+ end
14
+
15
+ def domain_name
16
+ 'hammer-cli-foreman-azure-rm'
17
+ end
18
+
19
+ def type
20
+ :mo
21
+ end
22
+ end
23
+ end
24
+ end
25
+
26
+ HammerCLI::I18n.add_domain(HammerCLIForemanAzureRm::I18n::LocaleDomain.new)
27
+
@@ -1,5 +1,5 @@
1
- module HammerCLIForemanAzureRM
1
+ module HammerCLIForemanAzureRm
2
2
  def self.version
3
- @version ||= Gem::Version.new '0.1.2'
3
+ @version ||= Gem::Version.new '0.2.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_cli_foreman_azure_rm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aditi Puntambekar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-09 00:00:00.000000000 Z
11
+ date: 2020-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gettext
@@ -83,6 +83,7 @@ files:
83
83
  - config/foreman_azure_rm.yml
84
84
  - lib/hammer_cli_foreman_azure_rm.rb
85
85
  - lib/hammer_cli_foreman_azure_rm/compute_resources/azure_rm.rb
86
+ - lib/hammer_cli_foreman_azure_rm/i18n.rb
86
87
  - lib/hammer_cli_foreman_azure_rm/version.rb
87
88
  homepage: https://github.com/theforeman/hammer_cli_foreman_azure_rm
88
89
  licenses: