# -*- coding: utf-8 -*- require "magellan/cli/resources" module Magellan module Cli module Resources class ClientVersion < Base self.resource_name = "client_version" self.resource_dependency = {"stage" => "stage"} desc "create VERSION", "create New Client Version" def create(version) stage = load_selection("stage") params = { parameter_name => { "stage_title_id" => stage["id"], "version" => version, } } post_json("/admin/#{resource_name}/new.js", params) end end end end end