Module: HammerCLIForeman::References
- Defined in:
- lib/hammer_cli_foreman/references.rb
Class Method Summary collapse
- .compute_resources(dsl) ⇒ Object
- .config_templates(dsl) ⇒ Object
- .domains(dsl) ⇒ Object
- .environments(dsl) ⇒ Object
- .external_usergroups(dsl) ⇒ Object
- .hostgroups(dsl) ⇒ Object
- .media(dsl) ⇒ Object
- .operating_systems(dsl) ⇒ Object
- .parameters(dsl) ⇒ Object
- .puppetclasses(dsl) ⇒ Object
- .roles(dsl) ⇒ Object
- .smart_proxies(dsl) ⇒ Object
- .subnets(dsl) ⇒ Object
- .taxonomies(dsl) ⇒ Object
- .timestamps(dsl) ⇒ Object
- .usergroups(dsl) ⇒ Object
- .users(dsl) ⇒ Object
Class Method Details
.compute_resources(dsl) ⇒ Object
48 49 50 51 52 53 54 |
# File 'lib/hammer_cli_foreman/references.rb', line 48 def self.compute_resources(dsl) dsl.build do collection :compute_resources, _("Compute resources"), :numbered => false do custom_field Fields::Reference end end end |
.config_templates(dsl) ⇒ Object
64 65 66 67 68 69 70 |
# File 'lib/hammer_cli_foreman/references.rb', line 64 def self.config_templates(dsl) dsl.build do collection :config_templates, _("Templates"), :numbered => false do custom_field Fields::Template end end end |
.domains(dsl) ⇒ Object
72 73 74 75 76 77 78 |
# File 'lib/hammer_cli_foreman/references.rb', line 72 def self.domains(dsl) dsl.build do collection :domains, _("Domains"), :numbered => false do custom_field Fields::Reference end end end |
.environments(dsl) ⇒ Object
80 81 82 83 84 85 86 |
# File 'lib/hammer_cli_foreman/references.rb', line 80 def self.environments(dsl) dsl.build do collection :environments, _("Environments"), :numbered => false do custom_field Fields::Reference end end end |
.external_usergroups(dsl) ⇒ Object
137 138 139 140 141 142 143 |
# File 'lib/hammer_cli_foreman/references.rb', line 137 def self.external_usergroups(dsl) dsl.build do collection :external_usergroups, _("External user groups"), :numbered => false do custom_field Fields::Reference end end end |
.hostgroups(dsl) ⇒ Object
88 89 90 91 92 93 94 |
# File 'lib/hammer_cli_foreman/references.rb', line 88 def self.hostgroups(dsl) dsl.build do collection :hostgroups, _("Hostgroups"), :numbered => false do custom_field Fields::Reference end end end |
.media(dsl) ⇒ Object
56 57 58 59 60 61 62 |
# File 'lib/hammer_cli_foreman/references.rb', line 56 def self.media(dsl) dsl.build do collection :media, _("Installation media"), :numbered => false do custom_field Fields::Reference end end end |
.operating_systems(dsl) ⇒ Object
121 122 123 124 125 126 127 |
# File 'lib/hammer_cli_foreman/references.rb', line 121 def self.(dsl) dsl.build do collection :operatingsystems, _("Operating systems"), :numbered => false do custom_field Fields::Reference, :name_key => :title end end end |
.parameters(dsl) ⇒ Object
105 106 107 108 109 110 111 |
# File 'lib/hammer_cli_foreman/references.rb', line 105 def self.parameters(dsl) dsl.build do collection :parameters, _("Parameters"), :numbered => false do custom_field Fields::KeyValue end end end |
.puppetclasses(dsl) ⇒ Object
113 114 115 116 117 118 119 |
# File 'lib/hammer_cli_foreman/references.rb', line 113 def self.puppetclasses(dsl) dsl.build do collection :puppetclasses, _("Puppetclasses"), :numbered => false do custom_field Fields::Reference end end end |
.roles(dsl) ⇒ Object
129 130 131 132 133 134 135 |
# File 'lib/hammer_cli_foreman/references.rb', line 129 def self.roles(dsl) dsl.build do collection :roles, _("Roles"), :numbered => false do custom_field Fields::Reference end end end |
.smart_proxies(dsl) ⇒ Object
40 41 42 43 44 45 46 |
# File 'lib/hammer_cli_foreman/references.rb', line 40 def self.smart_proxies(dsl) dsl.build do collection :smart_proxies, _("Smart proxies"), :numbered => false do custom_field Fields::Reference end end end |
.subnets(dsl) ⇒ Object
96 97 98 99 100 101 102 |
# File 'lib/hammer_cli_foreman/references.rb', line 96 def self.subnets(dsl) dsl.build do collection :subnets, _("Subnets"), :numbered => false do custom_field Fields::Reference, :details => :network_address end end end |
.taxonomies(dsl) ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/hammer_cli_foreman/references.rb', line 13 def self.taxonomies(dsl) dsl.build do collection :locations, _("Locations"), :numbered => false, :hide_blank => true do custom_field Fields::Reference end collection :organizations, _("Organizations"), :numbered => false, :hide_blank => true do custom_field Fields::Reference end end end |
.timestamps(dsl) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/hammer_cli_foreman/references.rb', line 6 def self.(dsl) dsl.build do field :created_at, _("Created at"), Fields::Date field :updated_at, _("Updated at"), Fields::Date end end |