foreman_datacenter 0.1.54 → 0.1.55
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/foreman_datacenter/modal.js +75 -0
- data/app/assets/javascripts/foreman_datacenter/modal_bck.js +21 -0
- data/app/assets/stylesheets/foreman_datacenter/datacenter.css +3 -2
- data/app/assets/stylesheets/foreman_datacenter/device_roles.css +0 -1
- data/app/assets/stylesheets/foreman_datacenter/devices.css +2 -0
- data/app/assets/stylesheets/foreman_datacenter/modal.css +109 -0
- data/app/assets/stylesheets/foreman_datacenter/title_filter.css +3 -0
- data/app/controllers/api/v2/foreman_datacenter/base_controller.rb +77 -0
- data/app/controllers/api/v2/foreman_datacenter/console_port_templates_controller.rb +48 -0
- data/app/controllers/api/v2/foreman_datacenter/console_ports_controller.rb +95 -0
- data/app/controllers/api/v2/foreman_datacenter/console_server_port_templates_controller.rb +48 -0
- data/app/controllers/api/v2/foreman_datacenter/console_server_ports_controller.rb +77 -0
- data/app/controllers/api/v2/foreman_datacenter/device_bay_templates_controller.rb +49 -0
- data/app/controllers/api/v2/foreman_datacenter/device_bays_controller.rb +75 -0
- data/app/controllers/api/v2/foreman_datacenter/device_interface_connections_controller.rb +71 -0
- data/app/controllers/api/v2/foreman_datacenter/device_interfaces_controller.rb +62 -0
- data/app/controllers/api/v2/foreman_datacenter/device_modules_controller.rb +58 -0
- data/app/controllers/api/v2/foreman_datacenter/device_roles_controller.rb +58 -0
- data/app/controllers/api/v2/foreman_datacenter/device_types_controller.rb +67 -0
- data/app/controllers/api/v2/foreman_datacenter/devices_controller.rb +87 -0
- data/app/controllers/api/v2/foreman_datacenter/devices_controller.rb~ +87 -0
- data/app/controllers/api/v2/foreman_datacenter/interface_templates_controller.rb +50 -0
- data/app/controllers/api/v2/foreman_datacenter/management_devices_controller.rb +58 -0
- data/app/controllers/api/v2/foreman_datacenter/manufacturers_controller.rb +57 -0
- data/app/controllers/api/v2/foreman_datacenter/platforms_controller.rb +58 -0
- data/app/controllers/api/v2/foreman_datacenter/power_outlet_templates_controller.rb +49 -0
- data/app/controllers/api/v2/foreman_datacenter/power_outlets_controller.rb +77 -0
- data/app/controllers/api/v2/foreman_datacenter/power_port_templates_controller.rb +49 -0
- data/app/controllers/api/v2/foreman_datacenter/power_ports_controller.rb +94 -0
- data/app/controllers/api/v2/foreman_datacenter/rack_groups_controller.rb +64 -0
- data/app/controllers/api/v2/foreman_datacenter/racks_controller.rb +62 -0
- data/app/controllers/api/v2/foreman_datacenter/sites_controller.rb +65 -0
- data/app/controllers/concerns/foreman_datacenter/controller/parameters/comment.rb +16 -0
- data/app/controllers/concerns/foreman_datacenter/controller/parameters/console_port.rb +15 -0
- data/app/controllers/concerns/foreman_datacenter/controller/parameters/console_port_template.rb +15 -0
- data/app/controllers/concerns/foreman_datacenter/controller/parameters/console_server_port.rb +15 -0
- data/app/controllers/concerns/foreman_datacenter/controller/parameters/console_server_port_template.rb +15 -0
- data/app/controllers/concerns/foreman_datacenter/controller/parameters/device.rb +18 -0
- data/app/controllers/concerns/foreman_datacenter/controller/parameters/device_bay.rb +15 -0
- data/app/controllers/concerns/foreman_datacenter/controller/parameters/device_bay_template.rb +15 -0
- data/app/controllers/concerns/foreman_datacenter/controller/parameters/device_interface.rb +17 -0
- data/app/controllers/concerns/foreman_datacenter/controller/parameters/device_interface_connection.rb +15 -0
- data/app/controllers/concerns/foreman_datacenter/controller/parameters/device_module.rb +15 -0
- data/app/controllers/concerns/foreman_datacenter/controller/parameters/device_role.rb +15 -0
- data/app/controllers/concerns/foreman_datacenter/controller/parameters/device_type.rb +17 -0
- data/app/controllers/concerns/foreman_datacenter/controller/parameters/interface_template.rb +15 -0
- data/app/controllers/concerns/foreman_datacenter/controller/parameters/management_device.rb +15 -0
- data/app/controllers/concerns/foreman_datacenter/controller/parameters/manufacturer.rb +15 -0
- data/app/controllers/concerns/foreman_datacenter/controller/parameters/platform.rb +15 -0
- data/app/controllers/concerns/foreman_datacenter/controller/parameters/power_outlet.rb +15 -0
- data/app/controllers/concerns/foreman_datacenter/controller/parameters/power_outlet_template.rb +15 -0
- data/app/controllers/concerns/foreman_datacenter/controller/parameters/power_port.rb +15 -0
- data/app/controllers/concerns/foreman_datacenter/controller/parameters/power_port_template.rb +15 -0
- data/app/controllers/concerns/foreman_datacenter/controller/parameters/rack.rb +16 -0
- data/app/controllers/concerns/foreman_datacenter/controller/parameters/rack_group.rb +15 -0
- data/app/controllers/concerns/foreman_datacenter/controller/parameters/site.rb +16 -0
- data/app/controllers/foreman_datacenter/application_controller.rb +99 -0
- data/app/controllers/foreman_datacenter/comments_controller.rb +38 -53
- data/app/controllers/foreman_datacenter/console_port_templates_controller.rb +9 -19
- data/app/controllers/foreman_datacenter/console_ports_controller.rb +14 -23
- data/app/controllers/foreman_datacenter/console_server_port_templates_controller.rb +9 -19
- data/app/controllers/foreman_datacenter/console_server_ports_controller.rb +11 -19
- data/app/controllers/foreman_datacenter/device_bay_templates_controller.rb +9 -19
- data/app/controllers/foreman_datacenter/device_bays_controller.rb +8 -15
- data/app/controllers/foreman_datacenter/device_interface_connections_controller.rb +10 -19
- data/app/controllers/foreman_datacenter/device_interfaces_controller.rb +8 -17
- data/app/controllers/foreman_datacenter/device_modules_controller.rb +6 -14
- data/app/controllers/foreman_datacenter/device_roles_controller.rb +15 -16
- data/app/controllers/foreman_datacenter/device_types_controller.rb +17 -21
- data/app/controllers/foreman_datacenter/devices_controller.rb +35 -45
- data/app/controllers/foreman_datacenter/interface_templates_controller.rb +6 -17
- data/app/controllers/foreman_datacenter/management_devices_controller.rb +5 -14
- data/app/controllers/foreman_datacenter/manufacturers_controller.rb +14 -15
- data/app/controllers/foreman_datacenter/platforms_controller.rb +12 -14
- data/app/controllers/foreman_datacenter/power_outlet_templates_controller.rb +7 -17
- data/app/controllers/foreman_datacenter/power_outlets_controller.rb +7 -14
- data/app/controllers/foreman_datacenter/power_port_templates_controller.rb +9 -19
- data/app/controllers/foreman_datacenter/power_ports_controller.rb +8 -16
- data/app/controllers/foreman_datacenter/rack_groups_controller.rb +29 -12
- data/app/controllers/foreman_datacenter/racks_controller.rb +29 -15
- data/app/controllers/foreman_datacenter/sites_controller.rb +34 -17
- data/app/helpers/foreman_datacenter/application_helper.rb +66 -0
- data/app/helpers/foreman_datacenter/comments_helper.rb +8 -0
- data/app/models/foreman_datacenter/comment.rb +2 -2
- data/app/models/foreman_datacenter/console_port.rb +10 -0
- data/app/models/foreman_datacenter/console_port_template.rb +5 -0
- data/app/models/foreman_datacenter/console_server_port.rb +6 -0
- data/app/models/foreman_datacenter/console_server_port_template.rb +5 -0
- data/app/models/foreman_datacenter/device.rb +20 -26
- data/app/models/foreman_datacenter/device_bay.rb +5 -0
- data/app/models/foreman_datacenter/device_bay_template.rb +5 -0
- data/app/models/foreman_datacenter/device_interface.rb +5 -0
- data/app/models/foreman_datacenter/device_interface_connection.rb +6 -0
- data/app/models/foreman_datacenter/device_module.rb +5 -0
- data/app/models/foreman_datacenter/device_role.rb +14 -0
- data/app/models/foreman_datacenter/device_type.rb +31 -6
- data/app/models/foreman_datacenter/interface_template.rb +5 -0
- data/app/models/foreman_datacenter/management_device.rb +9 -0
- data/app/models/foreman_datacenter/manufacturer.rb +18 -0
- data/app/models/foreman_datacenter/platform.rb +15 -0
- data/app/models/foreman_datacenter/power_outlet.rb +5 -0
- data/app/models/foreman_datacenter/power_outlet_template.rb +5 -0
- data/app/models/foreman_datacenter/power_port.rb +10 -0
- data/app/models/foreman_datacenter/power_port_template.rb +5 -0
- data/app/models/foreman_datacenter/rack.rb +19 -1
- data/app/models/foreman_datacenter/rack_group.rb +21 -0
- data/app/models/foreman_datacenter/site.rb +36 -2
- data/app/views/api/v2/foreman_datacenter/console_port_templates/base.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/console_port_templates/create.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/console_port_templates/index.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/console_port_templates/main.json.rabl +5 -0
- data/app/views/api/v2/foreman_datacenter/console_port_templates/show.json.rabl +7 -0
- data/app/views/api/v2/foreman_datacenter/console_ports/base.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/console_ports/create.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/console_ports/index.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/console_ports/main.json.rabl +5 -0
- data/app/views/api/v2/foreman_datacenter/console_ports/show.json.rabl +11 -0
- data/app/views/api/v2/foreman_datacenter/console_ports/update.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/console_server_port_templates/base.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/console_server_port_templates/create.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/console_server_port_templates/index.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/console_server_port_templates/main.json.rabl +5 -0
- data/app/views/api/v2/foreman_datacenter/console_server_port_templates/show.json.rabl +11 -0
- data/app/views/api/v2/foreman_datacenter/console_server_ports/base.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/console_server_ports/create.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/console_server_ports/index.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/console_server_ports/main.json.rabl +5 -0
- data/app/views/api/v2/foreman_datacenter/console_server_ports/show.json.rabl +7 -0
- data/app/views/api/v2/foreman_datacenter/console_server_ports/update.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/device_bay_templates/base.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/device_bay_templates/create.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/device_bay_templates/index.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/device_bay_templates/main.json.rabl +5 -0
- data/app/views/api/v2/foreman_datacenter/device_bay_templates/show.json.rabl +7 -0
- data/app/views/api/v2/foreman_datacenter/device_bays/base.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/device_bays/create.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/device_bays/index.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/device_bays/main.json.rabl +5 -0
- data/app/views/api/v2/foreman_datacenter/device_bays/show.json.rabl +7 -0
- data/app/views/api/v2/foreman_datacenter/device_bays/update.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/device_interface_connections/base.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/device_interface_connections/create.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/device_interface_connections/index.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/device_interface_connections/main.json.rabl +5 -0
- data/app/views/api/v2/foreman_datacenter/device_interface_connections/show.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/device_interface_connections/update.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/device_interfaces/base.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/device_interfaces/create.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/device_interfaces/index.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/device_interfaces/main.json.rabl +5 -0
- data/app/views/api/v2/foreman_datacenter/device_interfaces/show.json.rabl +7 -0
- data/app/views/api/v2/foreman_datacenter/device_interfaces/update.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/device_modules/base.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/device_modules/create.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/device_modules/index.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/device_modules/main.json.rabl +5 -0
- data/app/views/api/v2/foreman_datacenter/device_modules/show.json.rabl +7 -0
- data/app/views/api/v2/foreman_datacenter/device_modules/update.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/device_roles/base.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/device_roles/create.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/device_roles/index.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/device_roles/main.json.rabl +5 -0
- data/app/views/api/v2/foreman_datacenter/device_roles/show.json.rabl +7 -0
- data/app/views/api/v2/foreman_datacenter/device_roles/update.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/device_types/base.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/device_types/create.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/device_types/index.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/device_types/main.json.rabl +5 -0
- data/app/views/api/v2/foreman_datacenter/device_types/show.json.rabl +31 -0
- data/app/views/api/v2/foreman_datacenter/device_types/update.json.rabl +7 -0
- data/app/views/api/v2/foreman_datacenter/devices/base.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/devices/create.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/devices/index.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/devices/main.json.rabl +5 -0
- data/app/views/api/v2/foreman_datacenter/devices/show.json.rabl +63 -0
- data/app/views/api/v2/foreman_datacenter/devices/update.json.rabl +7 -0
- data/app/views/api/v2/foreman_datacenter/interface_templates/base.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/interface_templates/create.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/interface_templates/index.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/interface_templates/main.json.rabl +5 -0
- data/app/views/api/v2/foreman_datacenter/interface_templates/show.json.rabl +7 -0
- data/app/views/api/v2/foreman_datacenter/management_devices/base.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/management_devices/create.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/management_devices/index.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/management_devices/main.json.rabl +5 -0
- data/app/views/api/v2/foreman_datacenter/management_devices/show.json.rabl +7 -0
- data/app/views/api/v2/foreman_datacenter/management_devices/update.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/manufacturers/base.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/manufacturers/create.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/manufacturers/index.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/manufacturers/main.json.rabl +5 -0
- data/app/views/api/v2/foreman_datacenter/manufacturers/show.json.rabl +7 -0
- data/app/views/api/v2/foreman_datacenter/manufacturers/update.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/platforms/base.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/platforms/create.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/platforms/index.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/platforms/main.json.rabl +5 -0
- data/app/views/api/v2/foreman_datacenter/platforms/show.json.rabl +7 -0
- data/app/views/api/v2/foreman_datacenter/platforms/update.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/power_outlet_templates/base.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/power_outlet_templates/create.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/power_outlet_templates/index.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/power_outlet_templates/main.json.rabl +5 -0
- data/app/views/api/v2/foreman_datacenter/power_outlet_templates/show.json.rabl +7 -0
- data/app/views/api/v2/foreman_datacenter/power_outlets/base.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/power_outlets/create.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/power_outlets/index.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/power_outlets/main.json.rabl +5 -0
- data/app/views/api/v2/foreman_datacenter/power_outlets/show.json.rabl +11 -0
- data/app/views/api/v2/foreman_datacenter/power_outlets/update.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/power_port_templates/base.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/power_port_templates/create.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/power_port_templates/index.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/power_port_templates/main.json.rabl +5 -0
- data/app/views/api/v2/foreman_datacenter/power_port_templates/show.json.rabl +7 -0
- data/app/views/api/v2/foreman_datacenter/power_ports/base.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/power_ports/create.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/power_ports/index.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/power_ports/main.json.rabl +5 -0
- data/app/views/api/v2/foreman_datacenter/power_ports/show.json.rabl +11 -0
- data/app/views/api/v2/foreman_datacenter/power_ports/update.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/rack_groups/base.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/rack_groups/create.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/rack_groups/index.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/rack_groups/main.json.rabl +5 -0
- data/app/views/api/v2/foreman_datacenter/rack_groups/show.json.rabl +7 -0
- data/app/views/api/v2/foreman_datacenter/rack_groups/update.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/racks/base.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/racks/create.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/racks/index.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/racks/main.json.rabl +5 -0
- data/app/views/api/v2/foreman_datacenter/racks/show.json.rabl +11 -0
- data/app/views/api/v2/foreman_datacenter/racks/update.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/sites/base.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/sites/create.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/sites/index.json.rabl +3 -0
- data/app/views/api/v2/foreman_datacenter/sites/main.json.rabl +5 -0
- data/app/views/api/v2/foreman_datacenter/sites/show.json.rabl +11 -0
- data/app/views/api/v2/foreman_datacenter/sites/update.json.rabl +3 -0
- data/app/views/foreman_datacenter/comments/_children.html.erb +2 -2
- data/app/views/foreman_datacenter/comments/_comments.html.erb +8 -10
- data/app/views/foreman_datacenter/comments/_form.html.erb +27 -39
- data/app/views/foreman_datacenter/comments/_item.html.erb +4 -4
- data/app/views/foreman_datacenter/comments/_list.html.erb +26 -0
- data/app/views/foreman_datacenter/comments/edit.html.erb +3 -2
- data/app/views/foreman_datacenter/comments/new.html.erb +3 -2
- data/app/views/foreman_datacenter/common/404.html.erb +10 -0
- data/app/views/foreman_datacenter/console_port_templates/_form.html.erb +4 -3
- data/app/views/foreman_datacenter/console_port_templates/new.html.erb +3 -1
- data/app/views/foreman_datacenter/console_ports/_form.html.erb +4 -3
- data/app/views/foreman_datacenter/console_ports/edit.html.erb +3 -1
- data/app/views/foreman_datacenter/console_ports/index.html.erb +25 -26
- data/app/views/foreman_datacenter/console_ports/new.html.erb +3 -1
- data/app/views/foreman_datacenter/console_ports/new_connection.html.erb +2 -0
- data/app/views/foreman_datacenter/console_ports/welcome.html.erb +15 -0
- data/app/views/foreman_datacenter/console_server_port_templates/_form.html.erb +4 -3
- data/app/views/foreman_datacenter/console_server_port_templates/new.html.erb +3 -1
- data/app/views/foreman_datacenter/console_server_ports/_form.html.erb +4 -3
- data/app/views/foreman_datacenter/console_server_ports/edit.html.erb +3 -1
- data/app/views/foreman_datacenter/console_server_ports/new.html.erb +3 -1
- data/app/views/foreman_datacenter/console_server_ports/new_connection.html.erb +3 -1
- data/app/views/foreman_datacenter/device_bay_templates/_form.html.erb +4 -3
- data/app/views/foreman_datacenter/device_bay_templates/new.html.erb +3 -1
- data/app/views/foreman_datacenter/device_bays/_form.html.erb +4 -3
- data/app/views/foreman_datacenter/device_bays/edit.html.erb +3 -1
- data/app/views/foreman_datacenter/device_bays/new.html.erb +3 -1
- data/app/views/foreman_datacenter/device_bays/populate_new.html.erb +12 -4
- data/app/views/foreman_datacenter/device_interface_connections/_form.html.erb +20 -14
- data/app/views/foreman_datacenter/device_interface_connections/index.html.erb +29 -29
- data/app/views/foreman_datacenter/device_interface_connections/new.html.erb +3 -1
- data/app/views/foreman_datacenter/device_interface_connections/welcome.html.erb +15 -0
- data/app/views/foreman_datacenter/device_interfaces/_form.html.erb +6 -5
- data/app/views/foreman_datacenter/device_interfaces/edit.html.erb +3 -1
- data/app/views/foreman_datacenter/device_interfaces/new.html.erb +3 -1
- data/app/views/foreman_datacenter/device_modules/_form.html.erb +4 -3
- data/app/views/foreman_datacenter/device_modules/edit.html.erb +3 -1
- data/app/views/foreman_datacenter/device_modules/new.html.erb +3 -1
- data/app/views/foreman_datacenter/device_roles/edit.html.erb +3 -1
- data/app/views/foreman_datacenter/device_roles/index.html.erb +26 -16
- data/app/views/foreman_datacenter/device_roles/new.html.erb +3 -1
- data/app/views/foreman_datacenter/device_roles/show.html.erb +42 -16
- data/app/views/foreman_datacenter/device_roles/welcome.html.erb +2 -0
- data/app/views/foreman_datacenter/device_types/_form.html.erb +10 -10
- data/app/views/foreman_datacenter/device_types/edit.html.erb +3 -1
- data/app/views/foreman_datacenter/device_types/index.html.erb +30 -16
- data/app/views/foreman_datacenter/device_types/new.html.erb +3 -1
- data/app/views/foreman_datacenter/device_types/show.html.erb +178 -170
- data/app/views/foreman_datacenter/device_types/welcome.html.erb +2 -0
- data/app/views/foreman_datacenter/devices/_aracks.html.erb +2 -2
- data/app/views/foreman_datacenter/devices/_console_port.html.erb +1 -1
- data/app/views/foreman_datacenter/devices/_console_server_port.html.erb +1 -1
- data/app/views/foreman_datacenter/devices/_device_bay.html.erb +1 -1
- data/app/views/foreman_datacenter/devices/_device_module.html.erb +2 -2
- data/app/views/foreman_datacenter/devices/_device_types.html.erb +3 -3
- data/app/views/foreman_datacenter/devices/_for_rack.html.erb +2 -2
- data/app/views/foreman_datacenter/devices/_form.html.erb +2 -4
- data/app/views/foreman_datacenter/devices/_power_outlet.html.erb +1 -1
- data/app/views/foreman_datacenter/devices/_racks.html.erb +3 -3
- data/app/views/foreman_datacenter/devices/edit.html.erb +3 -1
- data/app/views/foreman_datacenter/devices/index.html.erb +40 -23
- data/app/views/foreman_datacenter/devices/inventory.html.erb +17 -14
- data/app/views/foreman_datacenter/devices/new.html.erb +3 -1
- data/app/views/foreman_datacenter/devices/show.html.erb +132 -114
- data/app/views/foreman_datacenter/devices/welcome.html.erb +2 -0
- data/app/views/foreman_datacenter/interface_templates/_form.html.erb +4 -3
- data/app/views/foreman_datacenter/interface_templates/new.html.erb +3 -1
- data/app/views/foreman_datacenter/management_devices/_form.html.erb +4 -3
- data/app/views/foreman_datacenter/management_devices/edit.html.erb +3 -1
- data/app/views/foreman_datacenter/management_devices/new.html.erb +3 -1
- data/app/views/foreman_datacenter/manufacturers/edit.html.erb +3 -1
- data/app/views/foreman_datacenter/manufacturers/index.html.erb +30 -15
- data/app/views/foreman_datacenter/manufacturers/new.html.erb +3 -1
- data/app/views/foreman_datacenter/manufacturers/show.html.erb +54 -24
- data/app/views/foreman_datacenter/manufacturers/welcome.html.erb +2 -0
- data/app/views/foreman_datacenter/platforms/edit.html.erb +3 -1
- data/app/views/foreman_datacenter/platforms/index.html.erb +27 -15
- data/app/views/foreman_datacenter/platforms/new.html.erb +3 -1
- data/app/views/foreman_datacenter/platforms/show.html.erb +43 -17
- data/app/views/foreman_datacenter/platforms/welcome.html.erb +2 -0
- data/app/views/foreman_datacenter/power_outlet_templates/_form.html.erb +4 -3
- data/app/views/foreman_datacenter/power_outlet_templates/new.html.erb +3 -1
- data/app/views/foreman_datacenter/power_outlets/_form.html.erb +4 -3
- data/app/views/foreman_datacenter/power_outlets/edit.html.erb +3 -1
- data/app/views/foreman_datacenter/power_outlets/new.html.erb +3 -1
- data/app/views/foreman_datacenter/power_outlets/new_connection.html.erb +3 -1
- data/app/views/foreman_datacenter/power_port_templates/_form.html.erb +4 -3
- data/app/views/foreman_datacenter/power_port_templates/new.html.erb +3 -1
- data/app/views/foreman_datacenter/power_ports/_form.html.erb +4 -3
- data/app/views/foreman_datacenter/power_ports/edit.html.erb +3 -1
- data/app/views/foreman_datacenter/power_ports/index.html.erb +26 -26
- data/app/views/foreman_datacenter/power_ports/new.html.erb +3 -1
- data/app/views/foreman_datacenter/power_ports/new_connection.html.erb +2 -0
- data/app/views/foreman_datacenter/power_ports/welcome.html.erb +15 -0
- data/app/views/foreman_datacenter/rack_groups/edit.html.erb +3 -1
- data/app/views/foreman_datacenter/rack_groups/index.html.erb +31 -17
- data/app/views/foreman_datacenter/rack_groups/move.html.erb +24 -0
- data/app/views/foreman_datacenter/rack_groups/new.html.erb +3 -1
- data/app/views/foreman_datacenter/rack_groups/show.html.erb +80 -55
- data/app/views/foreman_datacenter/racks/_device_position.html.erb +2 -2
- data/app/views/foreman_datacenter/racks/_form.html.erb +18 -18
- data/app/views/foreman_datacenter/racks/_rack_groups.html.erb +6 -6
- data/app/views/foreman_datacenter/racks/_unpositioned_devices.html.erb +2 -2
- data/app/views/foreman_datacenter/racks/edit.html.erb +3 -1
- data/app/views/foreman_datacenter/racks/index.html.erb +37 -27
- data/app/views/foreman_datacenter/racks/move.html.erb +24 -0
- data/app/views/foreman_datacenter/racks/new.html.erb +3 -1
- data/app/views/foreman_datacenter/racks/show.html.erb +47 -30
- data/app/views/foreman_datacenter/shared/_aa.html.erb +1 -0
- data/app/views/foreman_datacenter/shared/_modal.html.erb +28 -0
- data/app/views/foreman_datacenter/shared/_rack_device_select.html.erb +4 -4
- data/app/views/foreman_datacenter/sites/_form.html.erb +1 -0
- data/app/views/foreman_datacenter/sites/edit.html.erb +3 -1
- data/app/views/foreman_datacenter/sites/index.html.erb +30 -18
- data/app/views/foreman_datacenter/sites/move.html.erb +27 -0
- data/app/views/foreman_datacenter/sites/new.html.erb +3 -1
- data/app/views/foreman_datacenter/sites/show.html.erb +86 -56
- data/config/routes.rb +12 -1
- data/lib/foreman_datacenter/engine.rb +13 -1
- data/lib/foreman_datacenter/version.rb +1 -1
- data/test/controllers/foreman_datacenter/device_types_contoller_test.rb +91 -0
- data/test/controllers/foreman_datacenter/manufacturers_contoller_test.rb +97 -0
- data/test/controllers/foreman_datacenter/platforms_contoller_test.rb +97 -0
- data/test/controllers/foreman_datacenter/power_port_templates_contoller_test.rb +53 -0
- data/test/controllers/foreman_datacenter/rack_groups_contoller_test.rb +85 -91
- data/test/controllers/foreman_datacenter/racks_contoller_test.rb +65 -72
- data/test/controllers/foreman_datacenter/sites_contoller_test.rb +107 -71
- data/test/datacenter_helper.rb +4 -0
- data/test/factories/device_type.rb +13 -0
- data/test/factories/manufacturer.rb +5 -0
- data/test/factories/platform.rb +5 -0
- data/test/factories/rack.rb +8 -0
- data/test/factories/rack_group.rb +107 -0
- data/test/factories/site.rb +5 -0
- data/test/fixtures/foreman_datacenter/comments.yml +30 -0
- data/test/fixtures/foreman_datacenter/console_port_templates.yml +42 -0
- data/test/fixtures/foreman_datacenter/console_ports.yml +108 -0
- data/test/fixtures/foreman_datacenter/console_server_port_templates.yml +42 -0
- data/test/fixtures/foreman_datacenter/console_server_ports.yml +84 -0
- data/test/fixtures/foreman_datacenter/device_bay_templates.yml +14 -0
- data/test/fixtures/foreman_datacenter/device_bays.yml +32 -0
- data/test/fixtures/foreman_datacenter/device_interface_connections.yml +96 -0
- data/test/fixtures/foreman_datacenter/device_interfaces.yml +240 -0
- data/test/fixtures/foreman_datacenter/device_modules.yml +54 -0
- data/test/fixtures/foreman_datacenter/device_roles.yml +22 -0
- data/test/fixtures/foreman_datacenter/device_types.yml +54 -0
- data/test/fixtures/foreman_datacenter/devices.yml +126 -0
- data/test/fixtures/foreman_datacenter/interface_templates.yml +54 -0
- data/test/fixtures/foreman_datacenter/management_devices.yml +27 -0
- data/test/fixtures/foreman_datacenter/manufacturers.yml +24 -0
- data/test/fixtures/foreman_datacenter/platforms.yml +28 -0
- data/test/fixtures/foreman_datacenter/power_outlet_templates.yml +42 -0
- data/test/fixtures/foreman_datacenter/power_outlets.yml +84 -0
- data/test/fixtures/foreman_datacenter/power_port_templates.yml +42 -0
- data/test/fixtures/foreman_datacenter/power_ports.yml +108 -0
- data/test/fixtures/foreman_datacenter/rack_groups.yml +16 -6
- data/test/fixtures/foreman_datacenter/racks.yml +31 -10
- data/test/fixtures/foreman_datacenter/sites.yml +23 -12
- data/test/integration/foreman_datacenter/rack_group_test.rb +25 -25
- data/test/integration/foreman_datacenter/rack_test.rb +25 -25
- data/test/integration/foreman_datacenter/site_test.rb +29 -29
- data/test/test_plugin_helper.rb +1 -0
- data/test/unit/foreman_datacenter_test.rb +1 -1
- metadata +264 -2
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_datacenter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.55
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Ivanov
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-11-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: prawn
|
@@ -82,13 +82,68 @@ files:
|
|
82
82
|
- app/assets/javascripts/foreman_datacenter/device_interface_connections.js
|
83
83
|
- app/assets/javascripts/foreman_datacenter/devices.js
|
84
84
|
- app/assets/javascripts/foreman_datacenter/management_devices.js
|
85
|
+
- app/assets/javascripts/foreman_datacenter/modal.js
|
86
|
+
- app/assets/javascripts/foreman_datacenter/modal_bck.js
|
85
87
|
- app/assets/javascripts/foreman_datacenter/racks.js
|
86
88
|
- app/assets/javascripts/foreman_datacenter/shared.js
|
87
89
|
- app/assets/stylesheets/foreman_datacenter/comments.css
|
88
90
|
- app/assets/stylesheets/foreman_datacenter/datacenter.css
|
89
91
|
- app/assets/stylesheets/foreman_datacenter/device_interface_connections.css
|
90
92
|
- app/assets/stylesheets/foreman_datacenter/device_roles.css
|
93
|
+
- app/assets/stylesheets/foreman_datacenter/devices.css
|
94
|
+
- app/assets/stylesheets/foreman_datacenter/modal.css
|
95
|
+
- app/assets/stylesheets/foreman_datacenter/title_filter.css
|
96
|
+
- app/controllers/api/v2/foreman_datacenter/base_controller.rb
|
97
|
+
- app/controllers/api/v2/foreman_datacenter/console_port_templates_controller.rb
|
98
|
+
- app/controllers/api/v2/foreman_datacenter/console_ports_controller.rb
|
99
|
+
- app/controllers/api/v2/foreman_datacenter/console_server_port_templates_controller.rb
|
100
|
+
- app/controllers/api/v2/foreman_datacenter/console_server_ports_controller.rb
|
101
|
+
- app/controllers/api/v2/foreman_datacenter/device_bay_templates_controller.rb
|
102
|
+
- app/controllers/api/v2/foreman_datacenter/device_bays_controller.rb
|
103
|
+
- app/controllers/api/v2/foreman_datacenter/device_interface_connections_controller.rb
|
104
|
+
- app/controllers/api/v2/foreman_datacenter/device_interfaces_controller.rb
|
105
|
+
- app/controllers/api/v2/foreman_datacenter/device_modules_controller.rb
|
106
|
+
- app/controllers/api/v2/foreman_datacenter/device_roles_controller.rb
|
107
|
+
- app/controllers/api/v2/foreman_datacenter/device_types_controller.rb
|
108
|
+
- app/controllers/api/v2/foreman_datacenter/devices_controller.rb
|
109
|
+
- app/controllers/api/v2/foreman_datacenter/devices_controller.rb~
|
110
|
+
- app/controllers/api/v2/foreman_datacenter/interface_templates_controller.rb
|
111
|
+
- app/controllers/api/v2/foreman_datacenter/management_devices_controller.rb
|
112
|
+
- app/controllers/api/v2/foreman_datacenter/manufacturers_controller.rb
|
113
|
+
- app/controllers/api/v2/foreman_datacenter/platforms_controller.rb
|
114
|
+
- app/controllers/api/v2/foreman_datacenter/power_outlet_templates_controller.rb
|
115
|
+
- app/controllers/api/v2/foreman_datacenter/power_outlets_controller.rb
|
116
|
+
- app/controllers/api/v2/foreman_datacenter/power_port_templates_controller.rb
|
117
|
+
- app/controllers/api/v2/foreman_datacenter/power_ports_controller.rb
|
118
|
+
- app/controllers/api/v2/foreman_datacenter/rack_groups_controller.rb
|
119
|
+
- app/controllers/api/v2/foreman_datacenter/racks_controller.rb
|
120
|
+
- app/controllers/api/v2/foreman_datacenter/sites_controller.rb
|
121
|
+
- app/controllers/concerns/foreman_datacenter/controller/parameters/comment.rb
|
122
|
+
- app/controllers/concerns/foreman_datacenter/controller/parameters/console_port.rb
|
123
|
+
- app/controllers/concerns/foreman_datacenter/controller/parameters/console_port_template.rb
|
124
|
+
- app/controllers/concerns/foreman_datacenter/controller/parameters/console_server_port.rb
|
125
|
+
- app/controllers/concerns/foreman_datacenter/controller/parameters/console_server_port_template.rb
|
126
|
+
- app/controllers/concerns/foreman_datacenter/controller/parameters/device.rb
|
127
|
+
- app/controllers/concerns/foreman_datacenter/controller/parameters/device_bay.rb
|
128
|
+
- app/controllers/concerns/foreman_datacenter/controller/parameters/device_bay_template.rb
|
129
|
+
- app/controllers/concerns/foreman_datacenter/controller/parameters/device_interface.rb
|
130
|
+
- app/controllers/concerns/foreman_datacenter/controller/parameters/device_interface_connection.rb
|
131
|
+
- app/controllers/concerns/foreman_datacenter/controller/parameters/device_module.rb
|
132
|
+
- app/controllers/concerns/foreman_datacenter/controller/parameters/device_role.rb
|
133
|
+
- app/controllers/concerns/foreman_datacenter/controller/parameters/device_type.rb
|
134
|
+
- app/controllers/concerns/foreman_datacenter/controller/parameters/interface_template.rb
|
135
|
+
- app/controllers/concerns/foreman_datacenter/controller/parameters/management_device.rb
|
136
|
+
- app/controllers/concerns/foreman_datacenter/controller/parameters/manufacturer.rb
|
137
|
+
- app/controllers/concerns/foreman_datacenter/controller/parameters/platform.rb
|
138
|
+
- app/controllers/concerns/foreman_datacenter/controller/parameters/power_outlet.rb
|
139
|
+
- app/controllers/concerns/foreman_datacenter/controller/parameters/power_outlet_template.rb
|
140
|
+
- app/controllers/concerns/foreman_datacenter/controller/parameters/power_port.rb
|
141
|
+
- app/controllers/concerns/foreman_datacenter/controller/parameters/power_port_template.rb
|
142
|
+
- app/controllers/concerns/foreman_datacenter/controller/parameters/rack.rb
|
143
|
+
- app/controllers/concerns/foreman_datacenter/controller/parameters/rack_group.rb
|
144
|
+
- app/controllers/concerns/foreman_datacenter/controller/parameters/site.rb
|
91
145
|
- app/controllers/concerns/foreman_datacenter/hosts_controller_extensions.rb
|
146
|
+
- app/controllers/foreman_datacenter/application_controller.rb
|
92
147
|
- app/controllers/foreman_datacenter/comments_controller.rb
|
93
148
|
- app/controllers/foreman_datacenter/console_port_templates_controller.rb
|
94
149
|
- app/controllers/foreman_datacenter/console_ports_controller.rb
|
@@ -114,6 +169,7 @@ files:
|
|
114
169
|
- app/controllers/foreman_datacenter/racks_controller.rb
|
115
170
|
- app/controllers/foreman_datacenter/sites_controller.rb
|
116
171
|
- app/helpers/foreman_datacenter/application_helper.rb
|
172
|
+
- app/helpers/foreman_datacenter/comments_helper.rb
|
117
173
|
- app/helpers/foreman_datacenter/console_ports_helper.rb
|
118
174
|
- app/helpers/foreman_datacenter/console_server_ports_helper.rb
|
119
175
|
- app/helpers/foreman_datacenter/device_bays_helper.rb
|
@@ -153,14 +209,148 @@ files:
|
|
153
209
|
- app/models/foreman_datacenter/rack.rb
|
154
210
|
- app/models/foreman_datacenter/rack_group.rb
|
155
211
|
- app/models/foreman_datacenter/site.rb
|
212
|
+
- app/views/api/v2/foreman_datacenter/console_port_templates/base.json.rabl
|
213
|
+
- app/views/api/v2/foreman_datacenter/console_port_templates/create.json.rabl
|
214
|
+
- app/views/api/v2/foreman_datacenter/console_port_templates/index.json.rabl
|
215
|
+
- app/views/api/v2/foreman_datacenter/console_port_templates/main.json.rabl
|
216
|
+
- app/views/api/v2/foreman_datacenter/console_port_templates/show.json.rabl
|
217
|
+
- app/views/api/v2/foreman_datacenter/console_ports/base.json.rabl
|
218
|
+
- app/views/api/v2/foreman_datacenter/console_ports/create.json.rabl
|
219
|
+
- app/views/api/v2/foreman_datacenter/console_ports/index.json.rabl
|
220
|
+
- app/views/api/v2/foreman_datacenter/console_ports/main.json.rabl
|
221
|
+
- app/views/api/v2/foreman_datacenter/console_ports/show.json.rabl
|
222
|
+
- app/views/api/v2/foreman_datacenter/console_ports/update.json.rabl
|
223
|
+
- app/views/api/v2/foreman_datacenter/console_server_port_templates/base.json.rabl
|
224
|
+
- app/views/api/v2/foreman_datacenter/console_server_port_templates/create.json.rabl
|
225
|
+
- app/views/api/v2/foreman_datacenter/console_server_port_templates/index.json.rabl
|
226
|
+
- app/views/api/v2/foreman_datacenter/console_server_port_templates/main.json.rabl
|
227
|
+
- app/views/api/v2/foreman_datacenter/console_server_port_templates/show.json.rabl
|
228
|
+
- app/views/api/v2/foreman_datacenter/console_server_ports/base.json.rabl
|
229
|
+
- app/views/api/v2/foreman_datacenter/console_server_ports/create.json.rabl
|
230
|
+
- app/views/api/v2/foreman_datacenter/console_server_ports/index.json.rabl
|
231
|
+
- app/views/api/v2/foreman_datacenter/console_server_ports/main.json.rabl
|
232
|
+
- app/views/api/v2/foreman_datacenter/console_server_ports/show.json.rabl
|
233
|
+
- app/views/api/v2/foreman_datacenter/console_server_ports/update.json.rabl
|
234
|
+
- app/views/api/v2/foreman_datacenter/device_bay_templates/base.json.rabl
|
235
|
+
- app/views/api/v2/foreman_datacenter/device_bay_templates/create.json.rabl
|
236
|
+
- app/views/api/v2/foreman_datacenter/device_bay_templates/index.json.rabl
|
237
|
+
- app/views/api/v2/foreman_datacenter/device_bay_templates/main.json.rabl
|
238
|
+
- app/views/api/v2/foreman_datacenter/device_bay_templates/show.json.rabl
|
239
|
+
- app/views/api/v2/foreman_datacenter/device_bays/base.json.rabl
|
240
|
+
- app/views/api/v2/foreman_datacenter/device_bays/create.json.rabl
|
241
|
+
- app/views/api/v2/foreman_datacenter/device_bays/index.json.rabl
|
242
|
+
- app/views/api/v2/foreman_datacenter/device_bays/main.json.rabl
|
243
|
+
- app/views/api/v2/foreman_datacenter/device_bays/show.json.rabl
|
244
|
+
- app/views/api/v2/foreman_datacenter/device_bays/update.json.rabl
|
245
|
+
- app/views/api/v2/foreman_datacenter/device_interface_connections/base.json.rabl
|
246
|
+
- app/views/api/v2/foreman_datacenter/device_interface_connections/create.json.rabl
|
247
|
+
- app/views/api/v2/foreman_datacenter/device_interface_connections/index.json.rabl
|
248
|
+
- app/views/api/v2/foreman_datacenter/device_interface_connections/main.json.rabl
|
249
|
+
- app/views/api/v2/foreman_datacenter/device_interface_connections/show.json.rabl
|
250
|
+
- app/views/api/v2/foreman_datacenter/device_interface_connections/update.json.rabl
|
251
|
+
- app/views/api/v2/foreman_datacenter/device_interfaces/base.json.rabl
|
252
|
+
- app/views/api/v2/foreman_datacenter/device_interfaces/create.json.rabl
|
253
|
+
- app/views/api/v2/foreman_datacenter/device_interfaces/index.json.rabl
|
254
|
+
- app/views/api/v2/foreman_datacenter/device_interfaces/main.json.rabl
|
255
|
+
- app/views/api/v2/foreman_datacenter/device_interfaces/show.json.rabl
|
256
|
+
- app/views/api/v2/foreman_datacenter/device_interfaces/update.json.rabl
|
257
|
+
- app/views/api/v2/foreman_datacenter/device_modules/base.json.rabl
|
258
|
+
- app/views/api/v2/foreman_datacenter/device_modules/create.json.rabl
|
259
|
+
- app/views/api/v2/foreman_datacenter/device_modules/index.json.rabl
|
260
|
+
- app/views/api/v2/foreman_datacenter/device_modules/main.json.rabl
|
261
|
+
- app/views/api/v2/foreman_datacenter/device_modules/show.json.rabl
|
262
|
+
- app/views/api/v2/foreman_datacenter/device_modules/update.json.rabl
|
263
|
+
- app/views/api/v2/foreman_datacenter/device_roles/base.json.rabl
|
264
|
+
- app/views/api/v2/foreman_datacenter/device_roles/create.json.rabl
|
265
|
+
- app/views/api/v2/foreman_datacenter/device_roles/index.json.rabl
|
266
|
+
- app/views/api/v2/foreman_datacenter/device_roles/main.json.rabl
|
267
|
+
- app/views/api/v2/foreman_datacenter/device_roles/show.json.rabl
|
268
|
+
- app/views/api/v2/foreman_datacenter/device_roles/update.json.rabl
|
269
|
+
- app/views/api/v2/foreman_datacenter/device_types/base.json.rabl
|
270
|
+
- app/views/api/v2/foreman_datacenter/device_types/create.json.rabl
|
271
|
+
- app/views/api/v2/foreman_datacenter/device_types/index.json.rabl
|
272
|
+
- app/views/api/v2/foreman_datacenter/device_types/main.json.rabl
|
273
|
+
- app/views/api/v2/foreman_datacenter/device_types/show.json.rabl
|
274
|
+
- app/views/api/v2/foreman_datacenter/device_types/update.json.rabl
|
275
|
+
- app/views/api/v2/foreman_datacenter/devices/base.json.rabl
|
276
|
+
- app/views/api/v2/foreman_datacenter/devices/create.json.rabl
|
277
|
+
- app/views/api/v2/foreman_datacenter/devices/index.json.rabl
|
278
|
+
- app/views/api/v2/foreman_datacenter/devices/main.json.rabl
|
279
|
+
- app/views/api/v2/foreman_datacenter/devices/show.json.rabl
|
280
|
+
- app/views/api/v2/foreman_datacenter/devices/update.json.rabl
|
281
|
+
- app/views/api/v2/foreman_datacenter/interface_templates/base.json.rabl
|
282
|
+
- app/views/api/v2/foreman_datacenter/interface_templates/create.json.rabl
|
283
|
+
- app/views/api/v2/foreman_datacenter/interface_templates/index.json.rabl
|
284
|
+
- app/views/api/v2/foreman_datacenter/interface_templates/main.json.rabl
|
285
|
+
- app/views/api/v2/foreman_datacenter/interface_templates/show.json.rabl
|
286
|
+
- app/views/api/v2/foreman_datacenter/management_devices/base.json.rabl
|
287
|
+
- app/views/api/v2/foreman_datacenter/management_devices/create.json.rabl
|
288
|
+
- app/views/api/v2/foreman_datacenter/management_devices/index.json.rabl
|
289
|
+
- app/views/api/v2/foreman_datacenter/management_devices/main.json.rabl
|
290
|
+
- app/views/api/v2/foreman_datacenter/management_devices/show.json.rabl
|
291
|
+
- app/views/api/v2/foreman_datacenter/management_devices/update.json.rabl
|
292
|
+
- app/views/api/v2/foreman_datacenter/manufacturers/base.json.rabl
|
293
|
+
- app/views/api/v2/foreman_datacenter/manufacturers/create.json.rabl
|
294
|
+
- app/views/api/v2/foreman_datacenter/manufacturers/index.json.rabl
|
295
|
+
- app/views/api/v2/foreman_datacenter/manufacturers/main.json.rabl
|
296
|
+
- app/views/api/v2/foreman_datacenter/manufacturers/show.json.rabl
|
297
|
+
- app/views/api/v2/foreman_datacenter/manufacturers/update.json.rabl
|
298
|
+
- app/views/api/v2/foreman_datacenter/platforms/base.json.rabl
|
299
|
+
- app/views/api/v2/foreman_datacenter/platforms/create.json.rabl
|
300
|
+
- app/views/api/v2/foreman_datacenter/platforms/index.json.rabl
|
301
|
+
- app/views/api/v2/foreman_datacenter/platforms/main.json.rabl
|
302
|
+
- app/views/api/v2/foreman_datacenter/platforms/show.json.rabl
|
303
|
+
- app/views/api/v2/foreman_datacenter/platforms/update.json.rabl
|
304
|
+
- app/views/api/v2/foreman_datacenter/power_outlet_templates/base.json.rabl
|
305
|
+
- app/views/api/v2/foreman_datacenter/power_outlet_templates/create.json.rabl
|
306
|
+
- app/views/api/v2/foreman_datacenter/power_outlet_templates/index.json.rabl
|
307
|
+
- app/views/api/v2/foreman_datacenter/power_outlet_templates/main.json.rabl
|
308
|
+
- app/views/api/v2/foreman_datacenter/power_outlet_templates/show.json.rabl
|
309
|
+
- app/views/api/v2/foreman_datacenter/power_outlets/base.json.rabl
|
310
|
+
- app/views/api/v2/foreman_datacenter/power_outlets/create.json.rabl
|
311
|
+
- app/views/api/v2/foreman_datacenter/power_outlets/index.json.rabl
|
312
|
+
- app/views/api/v2/foreman_datacenter/power_outlets/main.json.rabl
|
313
|
+
- app/views/api/v2/foreman_datacenter/power_outlets/show.json.rabl
|
314
|
+
- app/views/api/v2/foreman_datacenter/power_outlets/update.json.rabl
|
315
|
+
- app/views/api/v2/foreman_datacenter/power_port_templates/base.json.rabl
|
316
|
+
- app/views/api/v2/foreman_datacenter/power_port_templates/create.json.rabl
|
317
|
+
- app/views/api/v2/foreman_datacenter/power_port_templates/index.json.rabl
|
318
|
+
- app/views/api/v2/foreman_datacenter/power_port_templates/main.json.rabl
|
319
|
+
- app/views/api/v2/foreman_datacenter/power_port_templates/show.json.rabl
|
320
|
+
- app/views/api/v2/foreman_datacenter/power_ports/base.json.rabl
|
321
|
+
- app/views/api/v2/foreman_datacenter/power_ports/create.json.rabl
|
322
|
+
- app/views/api/v2/foreman_datacenter/power_ports/index.json.rabl
|
323
|
+
- app/views/api/v2/foreman_datacenter/power_ports/main.json.rabl
|
324
|
+
- app/views/api/v2/foreman_datacenter/power_ports/show.json.rabl
|
325
|
+
- app/views/api/v2/foreman_datacenter/power_ports/update.json.rabl
|
326
|
+
- app/views/api/v2/foreman_datacenter/rack_groups/base.json.rabl
|
327
|
+
- app/views/api/v2/foreman_datacenter/rack_groups/create.json.rabl
|
328
|
+
- app/views/api/v2/foreman_datacenter/rack_groups/index.json.rabl
|
329
|
+
- app/views/api/v2/foreman_datacenter/rack_groups/main.json.rabl
|
330
|
+
- app/views/api/v2/foreman_datacenter/rack_groups/show.json.rabl
|
331
|
+
- app/views/api/v2/foreman_datacenter/rack_groups/update.json.rabl
|
332
|
+
- app/views/api/v2/foreman_datacenter/racks/base.json.rabl
|
333
|
+
- app/views/api/v2/foreman_datacenter/racks/create.json.rabl
|
334
|
+
- app/views/api/v2/foreman_datacenter/racks/index.json.rabl
|
335
|
+
- app/views/api/v2/foreman_datacenter/racks/main.json.rabl
|
336
|
+
- app/views/api/v2/foreman_datacenter/racks/show.json.rabl
|
337
|
+
- app/views/api/v2/foreman_datacenter/racks/update.json.rabl
|
338
|
+
- app/views/api/v2/foreman_datacenter/sites/base.json.rabl
|
339
|
+
- app/views/api/v2/foreman_datacenter/sites/create.json.rabl
|
340
|
+
- app/views/api/v2/foreman_datacenter/sites/index.json.rabl
|
341
|
+
- app/views/api/v2/foreman_datacenter/sites/main.json.rabl
|
342
|
+
- app/views/api/v2/foreman_datacenter/sites/show.json.rabl
|
343
|
+
- app/views/api/v2/foreman_datacenter/sites/update.json.rabl
|
156
344
|
- app/views/foreman_datacenter/comments/_children.html.erb
|
157
345
|
- app/views/foreman_datacenter/comments/_comments.html.erb
|
158
346
|
- app/views/foreman_datacenter/comments/_form.html.erb
|
159
347
|
- app/views/foreman_datacenter/comments/_item.html.erb
|
348
|
+
- app/views/foreman_datacenter/comments/_list.html.erb
|
160
349
|
- app/views/foreman_datacenter/comments/create.html.erb
|
161
350
|
- app/views/foreman_datacenter/comments/edit.html.erb
|
162
351
|
- app/views/foreman_datacenter/comments/index.html.erb
|
163
352
|
- app/views/foreman_datacenter/comments/new.html.erb
|
353
|
+
- app/views/foreman_datacenter/common/404.html.erb
|
164
354
|
- app/views/foreman_datacenter/console_port_templates/_form.html.erb
|
165
355
|
- app/views/foreman_datacenter/console_port_templates/new.html.erb
|
166
356
|
- app/views/foreman_datacenter/console_ports/_for_device.html.erb
|
@@ -169,6 +359,7 @@ files:
|
|
169
359
|
- app/views/foreman_datacenter/console_ports/index.html.erb
|
170
360
|
- app/views/foreman_datacenter/console_ports/new.html.erb
|
171
361
|
- app/views/foreman_datacenter/console_ports/new_connection.html.erb
|
362
|
+
- app/views/foreman_datacenter/console_ports/welcome.html.erb
|
172
363
|
- app/views/foreman_datacenter/console_server_port_templates/_form.html.erb
|
173
364
|
- app/views/foreman_datacenter/console_server_port_templates/new.html.erb
|
174
365
|
- app/views/foreman_datacenter/console_server_ports/_for_device.html.erb
|
@@ -186,6 +377,7 @@ files:
|
|
186
377
|
- app/views/foreman_datacenter/device_interface_connections/_interfaces.html.erb
|
187
378
|
- app/views/foreman_datacenter/device_interface_connections/index.html.erb
|
188
379
|
- app/views/foreman_datacenter/device_interface_connections/new.html.erb
|
380
|
+
- app/views/foreman_datacenter/device_interface_connections/welcome.html.erb
|
189
381
|
- app/views/foreman_datacenter/device_interfaces/_form.html.erb
|
190
382
|
- app/views/foreman_datacenter/device_interfaces/edit.html.erb
|
191
383
|
- app/views/foreman_datacenter/device_interfaces/new.html.erb
|
@@ -261,9 +453,11 @@ files:
|
|
261
453
|
- app/views/foreman_datacenter/power_ports/index.html.erb
|
262
454
|
- app/views/foreman_datacenter/power_ports/new.html.erb
|
263
455
|
- app/views/foreman_datacenter/power_ports/new_connection.html.erb
|
456
|
+
- app/views/foreman_datacenter/power_ports/welcome.html.erb
|
264
457
|
- app/views/foreman_datacenter/rack_groups/_form.html.erb
|
265
458
|
- app/views/foreman_datacenter/rack_groups/edit.html.erb
|
266
459
|
- app/views/foreman_datacenter/rack_groups/index.html.erb
|
460
|
+
- app/views/foreman_datacenter/rack_groups/move.html.erb
|
267
461
|
- app/views/foreman_datacenter/rack_groups/new.html.erb
|
268
462
|
- app/views/foreman_datacenter/rack_groups/show.html.erb
|
269
463
|
- app/views/foreman_datacenter/rack_groups/welcome.html.erb
|
@@ -274,13 +468,17 @@ files:
|
|
274
468
|
- app/views/foreman_datacenter/racks/_unpositioned_devices.html.erb
|
275
469
|
- app/views/foreman_datacenter/racks/edit.html.erb
|
276
470
|
- app/views/foreman_datacenter/racks/index.html.erb
|
471
|
+
- app/views/foreman_datacenter/racks/move.html.erb
|
277
472
|
- app/views/foreman_datacenter/racks/new.html.erb
|
278
473
|
- app/views/foreman_datacenter/racks/show.html.erb
|
279
474
|
- app/views/foreman_datacenter/racks/welcome.html.erb
|
475
|
+
- app/views/foreman_datacenter/shared/_aa.html.erb
|
476
|
+
- app/views/foreman_datacenter/shared/_modal.html.erb
|
280
477
|
- app/views/foreman_datacenter/shared/_rack_device_select.html.erb
|
281
478
|
- app/views/foreman_datacenter/sites/_form.html.erb
|
282
479
|
- app/views/foreman_datacenter/sites/edit.html.erb
|
283
480
|
- app/views/foreman_datacenter/sites/index.html.erb
|
481
|
+
- app/views/foreman_datacenter/sites/move.html.erb
|
284
482
|
- app/views/foreman_datacenter/sites/new.html.erb
|
285
483
|
- app/views/foreman_datacenter/sites/show.html.erb
|
286
484
|
- app/views/foreman_datacenter/sites/welcome.html.erb
|
@@ -332,10 +530,42 @@ files:
|
|
332
530
|
- locale/en/foreman_datacenter.po
|
333
531
|
- locale/foreman_datacenter.pot
|
334
532
|
- locale/gemspec.rb
|
533
|
+
- test/controllers/foreman_datacenter/device_types_contoller_test.rb
|
534
|
+
- test/controllers/foreman_datacenter/manufacturers_contoller_test.rb
|
535
|
+
- test/controllers/foreman_datacenter/platforms_contoller_test.rb
|
536
|
+
- test/controllers/foreman_datacenter/power_port_templates_contoller_test.rb
|
335
537
|
- test/controllers/foreman_datacenter/rack_groups_contoller_test.rb
|
336
538
|
- test/controllers/foreman_datacenter/racks_contoller_test.rb
|
337
539
|
- test/controllers/foreman_datacenter/sites_contoller_test.rb
|
540
|
+
- test/datacenter_helper.rb
|
541
|
+
- test/factories/device_type.rb
|
338
542
|
- test/factories/foreman_datacenter_factories.rb
|
543
|
+
- test/factories/manufacturer.rb
|
544
|
+
- test/factories/platform.rb
|
545
|
+
- test/factories/rack.rb
|
546
|
+
- test/factories/rack_group.rb
|
547
|
+
- test/factories/site.rb
|
548
|
+
- test/fixtures/foreman_datacenter/comments.yml
|
549
|
+
- test/fixtures/foreman_datacenter/console_port_templates.yml
|
550
|
+
- test/fixtures/foreman_datacenter/console_ports.yml
|
551
|
+
- test/fixtures/foreman_datacenter/console_server_port_templates.yml
|
552
|
+
- test/fixtures/foreman_datacenter/console_server_ports.yml
|
553
|
+
- test/fixtures/foreman_datacenter/device_bay_templates.yml
|
554
|
+
- test/fixtures/foreman_datacenter/device_bays.yml
|
555
|
+
- test/fixtures/foreman_datacenter/device_interface_connections.yml
|
556
|
+
- test/fixtures/foreman_datacenter/device_interfaces.yml
|
557
|
+
- test/fixtures/foreman_datacenter/device_modules.yml
|
558
|
+
- test/fixtures/foreman_datacenter/device_roles.yml
|
559
|
+
- test/fixtures/foreman_datacenter/device_types.yml
|
560
|
+
- test/fixtures/foreman_datacenter/devices.yml
|
561
|
+
- test/fixtures/foreman_datacenter/interface_templates.yml
|
562
|
+
- test/fixtures/foreman_datacenter/management_devices.yml
|
563
|
+
- test/fixtures/foreman_datacenter/manufacturers.yml
|
564
|
+
- test/fixtures/foreman_datacenter/platforms.yml
|
565
|
+
- test/fixtures/foreman_datacenter/power_outlet_templates.yml
|
566
|
+
- test/fixtures/foreman_datacenter/power_outlets.yml
|
567
|
+
- test/fixtures/foreman_datacenter/power_port_templates.yml
|
568
|
+
- test/fixtures/foreman_datacenter/power_ports.yml
|
339
569
|
- test/fixtures/foreman_datacenter/rack_groups.yml
|
340
570
|
- test/fixtures/foreman_datacenter/racks.yml
|
341
571
|
- test/fixtures/foreman_datacenter/sites.yml
|
@@ -368,15 +598,47 @@ signing_key:
|
|
368
598
|
specification_version: 4
|
369
599
|
summary: A plugin that lets you document your servers in a datacenter
|
370
600
|
test_files:
|
601
|
+
- test/factories/rack_group.rb
|
371
602
|
- test/factories/foreman_datacenter_factories.rb
|
603
|
+
- test/factories/rack.rb
|
604
|
+
- test/factories/platform.rb
|
605
|
+
- test/factories/site.rb
|
606
|
+
- test/factories/manufacturer.rb
|
607
|
+
- test/factories/device_type.rb
|
372
608
|
- test/unit/foreman_datacenter_test.rb
|
373
609
|
- test/test_plugin_helper.rb
|
610
|
+
- test/datacenter_helper.rb
|
611
|
+
- test/fixtures/foreman_datacenter/device_interfaces.yml
|
612
|
+
- test/fixtures/foreman_datacenter/console_server_port_templates.yml
|
613
|
+
- test/fixtures/foreman_datacenter/interface_templates.yml
|
374
614
|
- test/fixtures/foreman_datacenter/sites.yml
|
375
615
|
- test/fixtures/foreman_datacenter/racks.yml
|
616
|
+
- test/fixtures/foreman_datacenter/device_bay_templates.yml
|
617
|
+
- test/fixtures/foreman_datacenter/power_ports.yml
|
618
|
+
- test/fixtures/foreman_datacenter/console_ports.yml
|
619
|
+
- test/fixtures/foreman_datacenter/management_devices.yml
|
620
|
+
- test/fixtures/foreman_datacenter/device_types.yml
|
621
|
+
- test/fixtures/foreman_datacenter/platforms.yml
|
622
|
+
- test/fixtures/foreman_datacenter/device_interface_connections.yml
|
623
|
+
- test/fixtures/foreman_datacenter/console_server_ports.yml
|
624
|
+
- test/fixtures/foreman_datacenter/devices.yml
|
625
|
+
- test/fixtures/foreman_datacenter/console_port_templates.yml
|
626
|
+
- test/fixtures/foreman_datacenter/device_roles.yml
|
627
|
+
- test/fixtures/foreman_datacenter/manufacturers.yml
|
628
|
+
- test/fixtures/foreman_datacenter/device_bays.yml
|
629
|
+
- test/fixtures/foreman_datacenter/power_outlet_templates.yml
|
376
630
|
- test/fixtures/foreman_datacenter/rack_groups.yml
|
631
|
+
- test/fixtures/foreman_datacenter/comments.yml
|
632
|
+
- test/fixtures/foreman_datacenter/device_modules.yml
|
633
|
+
- test/fixtures/foreman_datacenter/power_outlets.yml
|
634
|
+
- test/fixtures/foreman_datacenter/power_port_templates.yml
|
377
635
|
- test/controllers/foreman_datacenter/racks_contoller_test.rb
|
636
|
+
- test/controllers/foreman_datacenter/device_types_contoller_test.rb
|
637
|
+
- test/controllers/foreman_datacenter/platforms_contoller_test.rb
|
378
638
|
- test/controllers/foreman_datacenter/rack_groups_contoller_test.rb
|
379
639
|
- test/controllers/foreman_datacenter/sites_contoller_test.rb
|
640
|
+
- test/controllers/foreman_datacenter/power_port_templates_contoller_test.rb
|
641
|
+
- test/controllers/foreman_datacenter/manufacturers_contoller_test.rb
|
380
642
|
- test/integration/foreman_datacenter/site_test.rb
|
381
643
|
- test/integration/foreman_datacenter/rack_group_test.rb
|
382
644
|
- test/integration/foreman_datacenter/rack_test.rb
|