class Kontena::Plugin::Cloud::Image::CreateCommand
Public Instance Methods
execute()
click to toggle source
# File lib/kontena/plugin/cloud/image/create_command.rb, line 13 def execute body = { data: { type: 'repositories', id: self.name } } spinner "Creating image repository #{pastel.cyan(name)}" do image_registry_client.post("/repositories", JSON.dump(body)) end end