Class: UuDevman::ConstructionTask
- Inherits:
-
Object
- Object
- UuDevman::ConstructionTask
- Defined in:
- lib/uu_devman/construction_task.rb,
lib/uu_devman/construction_task/feature_type.rb,
lib/uu_devman/construction_task/estimated_effort.rb
Overview
Specific assignment for a construction division. Construction task is further divided into work items.
Defined Under Namespace
Modules: EstimatedEffort, FeatureType
Class Method Summary (collapse)
-
+ (String) create(product_folder_uri, opts)
Creates a new construction task for the specified idea.
-
+ (Object) get_attributes(construction_task_uri)
Get attributes of construction task.
-
+ (UU::OS::UESURI) set_attributes(construction_task_uri, opts)
Set construction task attributes.
-
+ (void) set_release(construction_task_uri, parameters)
Assigns construction task to the specified release.
Instance Method Summary (collapse)
-
- (String) create(product_folder_uri, opts)
Creates a new construction task.
-
- (Hash, NilClass) get_attributes(construction_task_uri)
Get attributes of construction task.
-
- (ConstructionTask) initialize(session, options = nil)
constructor
Creates a new instance of
ConstructionTask
. -
- (UU::OS::UESURI) set_attributes(construction_task_uri, opts)
Set construction task attributes.
-
- (void) set_release(construction_task_uri, parameters)
Assigns construction task to the specified release.
Constructor Details
- (ConstructionTask) initialize(session, options = nil)
Creates a new instance of ConstructionTask
.
18 19 20 |
# File 'lib/uu_devman/construction_task.rb', line 18 def initialize(session, = nil) @cmd = UU::OS::CMD::CommandClient.new("uu-devman", session, ) end |
Class Method Details
+ (String) create(product_folder_uri, opts)
Creates a new construction task for the specified idea. This method is a convenience shortcut for the #create instance method.
142 143 144 145 |
# File 'lib/uu_devman/construction_task.rb', line 142 def self.create(product_folder_uri, opts) session = UU::OS::Security::Session.current_session self.new(session).create(product_folder_uri, opts) end |
+ (Object) get_attributes(construction_task_uri)
Get attributes of construction task.
289 290 291 292 |
# File 'lib/uu_devman/construction_task.rb', line 289 def self.get_attributes(construction_task_uri) session = UU::OS::Security::Session.current_session self.new(session).get_attributes(construction_task_uri) end |
+ (UU::OS::UESURI) set_attributes(construction_task_uri, opts)
Set construction task attributes
347 348 349 350 |
# File 'lib/uu_devman/construction_task.rb', line 347 def self.set_attributes(construction_task_uri, opts) session = UU::OS::Security::Session.current_session self.new(session).set_attributes(construction_task_uri, opts) end |
+ (void) set_release(construction_task_uri, parameters)
This method returns an undefined value.
Assigns construction task to the specified release. This method is a convenience shortcut for the #set_release instance method.
237 238 239 240 |
# File 'lib/uu_devman/construction_task.rb', line 237 def self.set_release(construction_task_uri, parameters) session = UU::OS::Security::Session.current_session self.new(session).set_release(construction_task_uri, parameters) end |
Instance Method Details
- (String) create(product_folder_uri, opts)
Creates a new construction task.
84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/uu_devman/construction_task.rb', line 84 def create(product_folder_uri, opts) is_uesuri! product_folder_uri, "Product folder uri" is_uesuri! opts[:ideaUri], "Idea URI" unless opts[:ideaUri].nil? is_not_empty! opts[:name], "Name" is_not_empty! opts[:code], "code" unless opts[:code].nil? is_uesuri! opts[:moduleUri], "Module URI" is_uesuri! opts[:devRoleUri], "Development role URI" unless opts[:devRoleUri].nil? is_enum_value! opts[:estimatedEffort], UuDevman::ConstructionTask::EstimatedEffort, "Estimated effort" unless opts[:estimatedEffort].nil? is_uesuri! opts[:releaseUri], "Release URI" unless opts[:releaseUri].nil? @cmd.invoke("ConstructionTask/create", product_folder_uri, parameters: opts) end |
- (Hash, NilClass) get_attributes(construction_task_uri)
Get attributes of construction task.
264 265 266 267 268 |
# File 'lib/uu_devman/construction_task.rb', line 264 def get_attributes(construction_task_uri) is_uesuri! construction_task_uri, "Construction Task URI" @cmd.invoke("ConstructionTask/getAttributes", construction_task_uri) end |
- (UU::OS::UESURI) set_attributes(construction_task_uri, opts)
Set construction task attributes
317 318 319 320 321 322 323 324 325 |
# File 'lib/uu_devman/construction_task.rb', line 317 def set_attributes(construction_task_uri, opts) is_uesuri! construction_task_uri, "Construction Task URI" is_uesuri! opts[:moduleUri], "Module URI" unless opts[:moduleUri].nil? is_uesuri! opts[:releaseUri], "Module URI" unless opts[:releaseUri].nil? @cmd.invoke("ConstructionTask/setAttributes", construction_task_uri, parameters:opts) UU::OS::UESURI.new(construction_task_uri) end |
- (void) set_release(construction_task_uri, parameters)
This method returns an undefined value.
Assigns construction task to the specified release.
198 199 200 201 202 203 204 |
# File 'lib/uu_devman/construction_task.rb', line 198 def set_release(construction_task_uri, parameters) is_uesuri! construction_task_uri, "Construction Task URI" is_uesuri! parameters[:releaseUri], "Release URI" unless parameters[:releaseUri].nil? is_enum_value! parameters[:featureType], UuDevman::ConstructionTask::FeatureType, "Feature type" unless parameters[:featureType].nil? @cmd.invoke("ConstructionTask/setRelease", construction_task_uri, parameters: parameters) end |