hammer_cli_foreman 0.1.4 → 0.2.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.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/config/foreman.yml +16 -0
  3. data/doc/host_create.md +102 -54
  4. data/doc/release_notes.md +20 -0
  5. data/lib/hammer_cli_foreman.rb +8 -0
  6. data/lib/hammer_cli_foreman/commands.rb +33 -9
  7. data/lib/hammer_cli_foreman/compute_resource.rb +13 -2
  8. data/lib/hammer_cli_foreman/domain.rb +24 -1
  9. data/lib/hammer_cli_foreman/environment.rb +1 -2
  10. data/lib/hammer_cli_foreman/host.rb +131 -73
  11. data/lib/hammer_cli_foreman/hostgroup.rb +18 -8
  12. data/lib/hammer_cli_foreman/i18n.rb +2 -6
  13. data/lib/hammer_cli_foreman/id_resolver.rb +41 -6
  14. data/lib/hammer_cli_foreman/interface.rb +165 -0
  15. data/lib/hammer_cli_foreman/output/fields.rb +7 -0
  16. data/lib/hammer_cli_foreman/output/formatters.rb +3 -5
  17. data/lib/hammer_cli_foreman/puppet_class.rb +16 -2
  18. data/lib/hammer_cli_foreman/settings.rb +37 -0
  19. data/lib/hammer_cli_foreman/smart_class_parameter.rb +75 -11
  20. data/lib/hammer_cli_foreman/smart_variable.rb +146 -0
  21. data/lib/hammer_cli_foreman/user.rb +9 -3
  22. data/lib/hammer_cli_foreman/version.rb +1 -1
  23. data/locale/Makefile +9 -17
  24. data/locale/de/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  25. data/locale/de/hammer-cli-foreman.edit.po +2403 -0
  26. data/locale/de/hammer-cli-foreman.po +302 -355
  27. data/locale/de/hammer-cli-foreman.po.time_stamp +0 -0
  28. data/locale/en/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  29. data/locale/en/hammer-cli-foreman.edit.po +2260 -0
  30. data/locale/en/hammer-cli-foreman.po +946 -823
  31. data/locale/en/hammer-cli-foreman.po.time_stamp +0 -0
  32. data/locale/en_GB/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  33. data/locale/en_GB/hammer-cli-foreman.edit.po +2267 -0
  34. data/locale/en_GB/hammer-cli-foreman.po +297 -351
  35. data/locale/en_GB/hammer-cli-foreman.po.time_stamp +0 -0
  36. data/locale/es/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  37. data/locale/es/hammer-cli-foreman.edit.po +2427 -0
  38. data/locale/es/hammer-cli-foreman.po +301 -354
  39. data/locale/es/hammer-cli-foreman.po.time_stamp +0 -0
  40. data/locale/fr/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  41. data/locale/fr/hammer-cli-foreman.edit.po +2427 -0
  42. data/locale/fr/hammer-cli-foreman.po +299 -353
  43. data/locale/fr/hammer-cli-foreman.po.time_stamp +0 -0
  44. data/locale/hammer-cli-foreman.pot +1413 -1112
  45. data/locale/it/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  46. data/locale/it/hammer-cli-foreman.edit.po +2402 -0
  47. data/locale/it/hammer-cli-foreman.po +299 -353
  48. data/locale/it/hammer-cli-foreman.po.time_stamp +0 -0
  49. data/locale/ja/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  50. data/locale/ja/hammer-cli-foreman.edit.po +2401 -0
  51. data/locale/ja/hammer-cli-foreman.po +338 -391
  52. data/locale/ja/hammer-cli-foreman.po.time_stamp +0 -0
  53. data/locale/ko/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  54. data/locale/ko/hammer-cli-foreman.edit.po +2401 -0
  55. data/locale/ko/hammer-cli-foreman.po +299 -353
  56. data/locale/ko/hammer-cli-foreman.po.time_stamp +0 -0
  57. data/locale/pt_BR/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  58. data/locale/pt_BR/hammer-cli-foreman.edit.po +2417 -0
  59. data/locale/pt_BR/hammer-cli-foreman.po +312 -365
  60. data/locale/pt_BR/hammer-cli-foreman.po.time_stamp +0 -0
  61. data/locale/ru/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  62. data/locale/ru/hammer-cli-foreman.edit.po +2401 -0
  63. data/locale/ru/hammer-cli-foreman.po +300 -354
  64. data/locale/ru/hammer-cli-foreman.po.time_stamp +0 -0
  65. data/locale/zh_CN/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  66. data/locale/zh_CN/hammer-cli-foreman.edit.po +2400 -0
  67. data/locale/zh_CN/hammer-cli-foreman.po +299 -353
  68. data/locale/zh_CN/hammer-cli-foreman.po.time_stamp +0 -0
  69. data/locale/zh_TW/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  70. data/locale/zh_TW/hammer-cli-foreman.edit.po +2400 -0
  71. data/locale/zh_TW/hammer-cli-foreman.po +299 -353
  72. data/locale/zh_TW/hammer-cli-foreman.po.time_stamp +0 -0
  73. data/test/unit/apipie_resource_mock.rb +7 -0
  74. data/test/unit/commands_test.rb +42 -0
  75. data/test/unit/data/1.7/foreman_api.json +1 -0
  76. data/test/unit/dependency_resolver_test.rb +4 -2
  77. data/test/unit/environment_test.rb +2 -2
  78. data/test/unit/host_test.rb +50 -27
  79. data/test/unit/hostgroup_test.rb +19 -3
  80. data/test/unit/media_test.rb +2 -2
  81. data/test/unit/puppet_class_test.rb +17 -2
  82. data/test/unit/smart_class_parameter_test.rb +26 -2
  83. data/test/unit/smart_variable_test.rb +134 -0
  84. data/test/unit/test_helper.rb +1 -1
  85. metadata +36 -4
@@ -19,7 +19,7 @@ require 'hammer_cli'
19
19
  require 'hammer_cli_foreman/commands'
20
20
 
21
21
  HammerCLIForeman.stubs(:resource_config).returns({
22
- :apidoc_cache_dir => 'test/unit/data/' + (ENV['TEST_API_VERSION'] || '1.6'),
22
+ :apidoc_cache_dir => 'test/unit/data/' + (ENV['TEST_API_VERSION'] || '1.7'),
23
23
  :apidoc_cache_name => 'foreman_api',
24
24
  :dry_run => true})
25
25
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_cli_foreman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomáš Strachota
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-11 00:00:00.000000000 Z
12
+ date: 2015-04-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hammer_cli
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - '>='
19
19
  - !ruby/object:Gem::Version
20
- version: 0.1.4
20
+ version: 0.2.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '>='
26
26
  - !ruby/object:Gem::Version
27
- version: 0.1.4
27
+ version: 0.2.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: apipie-bindings
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -74,6 +74,7 @@ extra_rdoc_files:
74
74
  - README.md
75
75
  files:
76
76
  - README.md
77
+ - config/foreman.yml
77
78
  - doc/configuration.md
78
79
  - doc/developer_docs.md
79
80
  - doc/host_create.md
@@ -103,6 +104,7 @@ files:
103
104
  - lib/hammer_cli_foreman/i18n.rb
104
105
  - lib/hammer_cli_foreman/id_resolver.rb
105
106
  - lib/hammer_cli_foreman/image.rb
107
+ - lib/hammer_cli_foreman/interface.rb
106
108
  - lib/hammer_cli_foreman/location.rb
107
109
  - lib/hammer_cli_foreman/media.rb
108
110
  - lib/hammer_cli_foreman/model.rb
@@ -120,8 +122,10 @@ files:
120
122
  - lib/hammer_cli_foreman/report.rb
121
123
  - lib/hammer_cli_foreman/resource_supported_test.rb
122
124
  - lib/hammer_cli_foreman/role.rb
125
+ - lib/hammer_cli_foreman/settings.rb
123
126
  - lib/hammer_cli_foreman/smart_class_parameter.rb
124
127
  - lib/hammer_cli_foreman/smart_proxy.rb
128
+ - lib/hammer_cli_foreman/smart_variable.rb
125
129
  - lib/hammer_cli_foreman/subnet.rb
126
130
  - lib/hammer_cli_foreman/template.rb
127
131
  - lib/hammer_cli_foreman/user.rb
@@ -130,31 +134,55 @@ files:
130
134
  - locale/Makefile
131
135
  - locale/README.md
132
136
  - locale/de/LC_MESSAGES/hammer-cli-foreman.mo
137
+ - locale/de/hammer-cli-foreman.edit.po
133
138
  - locale/de/hammer-cli-foreman.po
139
+ - locale/de/hammer-cli-foreman.po.time_stamp
134
140
  - locale/en/LC_MESSAGES/hammer-cli-foreman.mo
141
+ - locale/en/hammer-cli-foreman.edit.po
135
142
  - locale/en/hammer-cli-foreman.po
143
+ - locale/en/hammer-cli-foreman.po.time_stamp
136
144
  - locale/en_GB/LC_MESSAGES/hammer-cli-foreman.mo
145
+ - locale/en_GB/hammer-cli-foreman.edit.po
137
146
  - locale/en_GB/hammer-cli-foreman.po
147
+ - locale/en_GB/hammer-cli-foreman.po.time_stamp
138
148
  - locale/es/LC_MESSAGES/hammer-cli-foreman.mo
149
+ - locale/es/hammer-cli-foreman.edit.po
139
150
  - locale/es/hammer-cli-foreman.po
151
+ - locale/es/hammer-cli-foreman.po.time_stamp
140
152
  - locale/fr/LC_MESSAGES/hammer-cli-foreman.mo
153
+ - locale/fr/hammer-cli-foreman.edit.po
141
154
  - locale/fr/hammer-cli-foreman.po
155
+ - locale/fr/hammer-cli-foreman.po.time_stamp
142
156
  - locale/hammer-cli-foreman.pot
143
157
  - locale/it/LC_MESSAGES/hammer-cli-foreman.mo
158
+ - locale/it/hammer-cli-foreman.edit.po
144
159
  - locale/it/hammer-cli-foreman.po
160
+ - locale/it/hammer-cli-foreman.po.time_stamp
145
161
  - locale/ja/LC_MESSAGES/hammer-cli-foreman.mo
162
+ - locale/ja/hammer-cli-foreman.edit.po
146
163
  - locale/ja/hammer-cli-foreman.po
164
+ - locale/ja/hammer-cli-foreman.po.time_stamp
147
165
  - locale/ko/LC_MESSAGES/hammer-cli-foreman.mo
166
+ - locale/ko/hammer-cli-foreman.edit.po
148
167
  - locale/ko/hammer-cli-foreman.po
168
+ - locale/ko/hammer-cli-foreman.po.time_stamp
149
169
  - locale/pt_BR/LC_MESSAGES/hammer-cli-foreman.mo
170
+ - locale/pt_BR/hammer-cli-foreman.edit.po
150
171
  - locale/pt_BR/hammer-cli-foreman.po
172
+ - locale/pt_BR/hammer-cli-foreman.po.time_stamp
151
173
  - locale/ru/LC_MESSAGES/hammer-cli-foreman.mo
174
+ - locale/ru/hammer-cli-foreman.edit.po
152
175
  - locale/ru/hammer-cli-foreman.po
176
+ - locale/ru/hammer-cli-foreman.po.time_stamp
153
177
  - locale/zanata.xml
154
178
  - locale/zh_CN/LC_MESSAGES/hammer-cli-foreman.mo
179
+ - locale/zh_CN/hammer-cli-foreman.edit.po
155
180
  - locale/zh_CN/hammer-cli-foreman.po
181
+ - locale/zh_CN/hammer-cli-foreman.po.time_stamp
156
182
  - locale/zh_TW/LC_MESSAGES/hammer-cli-foreman.mo
183
+ - locale/zh_TW/hammer-cli-foreman.edit.po
157
184
  - locale/zh_TW/hammer-cli-foreman.po
185
+ - locale/zh_TW/hammer-cli-foreman.po.time_stamp
158
186
  - test/reports/TEST-HammerCLIForeman-Architecture-CreateCommand-parameters.xml
159
187
  - test/reports/TEST-HammerCLIForeman-Architecture-CreateCommand.xml
160
188
  - test/reports/TEST-HammerCLIForeman-Architecture-DeleteCommand-parameters.xml
@@ -409,6 +437,7 @@ files:
409
437
  - test/unit/data/1.6/foreman_api.json
410
438
  - test/unit/data/1.6/foreman_api_back.json
411
439
  - test/unit/data/1.6/whatever.json
440
+ - test/unit/data/1.7/foreman_api.json
412
441
  - test/unit/dependency_resolver_test.rb
413
442
  - test/unit/domain_test.rb
414
443
  - test/unit/environment_test.rb
@@ -437,6 +466,7 @@ files:
437
466
  - test/unit/role_test.rb
438
467
  - test/unit/smart_class_parameter_test.rb
439
468
  - test/unit/smart_proxy_test.rb
469
+ - test/unit/smart_variable_test.rb
440
470
  - test/unit/subnet_test.rb
441
471
  - test/unit/template_test.rb
442
472
  - test/unit/test_helper.rb
@@ -716,6 +746,7 @@ test_files:
716
746
  - test/unit/media_test.rb
717
747
  - test/unit/api_test.rb
718
748
  - test/unit/host_test.rb
749
+ - test/unit/smart_variable_test.rb
719
750
  - test/unit/organization_test.rb
720
751
  - test/unit/smart_proxy_test.rb
721
752
  - test/unit/subnet_test.rb
@@ -755,4 +786,5 @@ test_files:
755
786
  - test/unit/data/1.6/foreman_api.json
756
787
  - test/unit/data/1.6/foreman_api_back.json
757
788
  - test/unit/data/1.5/foreman_api.json
789
+ - test/unit/data/1.7/foreman_api.json
758
790
  - test/unit/data/1.4/foreman_api.json