1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-11 22:24:21 +01:00
fab-manager/app/views/open_api/v1/machines/show.json.jbuilder

6 lines
234 B
Plaintext
Raw Normal View History

# frozen_string_literal: true
json.partial! 'open_api/v1/machines/machine', machine: @machine
json.extract! @machine, :description, :spec
json.image URI.join(root_url, @machine.machine_image.attachment.url) if @machine.machine_image