Class: UuDevman::Release
- Inherits:
-
Object
- Object
- UuDevman::Release
- Defined in:
- lib/uu_devman/release_create.rb,
lib/uu_devman/release_get_attributes.rb,
lib/uu_devman/release_set_attributes.rb
Overview
Module Release
Defined Under Namespace
Classes: MilestoneStates
Class Method Summary (collapse)
-
+ (UU::OS::Lang::Future) create(product_folder_uri, opts = {})
Create new release folder structure and release artifact.
-
+ (NilClass, Hash) get_attributes(release_artifact_uri)
Returns attributes of release.
-
+ (UU::OS::Lang::Future) set_attributes(release_artifact_uri, opts = {})
Set new parameter or edit release attributes.
Class Method Details
+ (UU::OS::Lang::Future) create(product_folder_uri, opts = {})
Create new release folder structure and release artifact.
39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/uu_devman/release_create.rb', line 39 def create(product_folder_uri, opts = {}) raise UuDevman::ValidationException, "Parameter product_folder must be a valid UU::OS::UESURI or its String representation." unless uesuri?(product_folder_uri) raise UuDevman::ValidationException, "Invalid :version parameter.\nVersion must be set and match regex ^[0-9]+(\\.[0-9]+){1,2}$" if opts[:version].nil? || !opts[:version].match(/^\d+(\.\d+){1,2}$/) opts[:milestones].each do |milestone| validate_milestone(milestone) end unless opts[:milestones].nil? session = UU::OS::Security::Session.current_session @cmd = UU::OS::CMD::CommandClient.new("uu-devman", session, nil) # create project structure @cmd.invoke("Release/create", product_folder_uri, parameters: {:params => opts}) end |
+ (NilClass, Hash) get_attributes(release_artifact_uri)
Returns attributes of release.
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/uu_devman/release_get_attributes.rb', line 10 def get_attributes(release_artifact_uri) raise UuDevman::ValidationException, "Parameter release_artifact_uri must be a valid UU::OS::UESURI or its String representation." unless uesuri?(release_artifact_uri) session = UU::OS::Security::Session.current_session @cmd = UU::OS::CMD::CommandClient.new("uu-devman", session, nil) # create project structure @cmd.invoke("Release/get_attributes", release_artifact_uri) #UU::OS::UESURI.new(release) end |
+ (UU::OS::Lang::Future) set_attributes(release_artifact_uri, opts = {})
Set new parameter or edit release attributes.
25 26 27 28 29 30 31 32 |
# File 'lib/uu_devman/release_set_attributes.rb', line 25 def set_attributes(release_artifact_uri, opts = {}) raise UuDevman::ValidationException, "Parameter release_artifact_uri must be a valid UU::OS::UESURI or its String representation." unless uesuri?(release_artifact_uri) session = UU::OS::Security::Session.current_session @cmd = UU::OS::CMD::CommandClient.new("uu-devman", session, nil) @cmd.invoke("Release/set_attributes", release_artifact_uri, parameters: {:release_attributes => opts}) end |