# -*- coding: utf-8 -*- require "magellan/cli/resources" module Magellan module Cli module Resources class Organization < Base self.resource_name = "magellan~auth~organization" # self.field_associations = {"creator_id" => {name: "creator", class: "User"} } desc "create NAME", "create Organization with NAME" def create(name) params = { parameter_name => { "name" => name, } } post_json("/admin/#{self.resource_name}/new.json", params) end end end end end