Class: Magellan::Cli::Resources::ClientVersion

Inherits:
Base
  • Object
show all
Defined in:
lib/magellan/cli/resources/client_version.rb

Instance Method Summary collapse

Methods included from FileAccess

#load_selection, #load_selections, #update_selections

Instance Method Details

#create(version) ⇒ Object



18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/magellan/cli/resources/client_version.rb', line 18

def create(version)
  stage = load_selection("stage")
  params = {
    parameter_name => {
      "stage_title_id" => stage["id"],
      "version" => version,
    }
  }
  post_json("/admin/#{resource_name}/new.json", params)
  # TODO implement select method
  # select(version)
end