# -*- coding: utf-8 -*- require "magellan/cli/resources" module Magellan module Cli module Resources class Project < Base self.resource_name = "project" self.resource_dependency = nil desc "update ATTRIBUTES", "update project with ATTRIBUTES" def update(attrs) s = load_selection("project") attrs = JSON.parse(File.readable?(attrs) ? File.read(attrs) : attrs) put_json("/admin/magellan~auth~project/#{s['id']}/edit", {"magellan_auth_project" => attrs}) end end end end end