Class: KCommercial::KCPipeline::Command::AppDemo
- Inherits:
-
KCommercial::KCPipeline::Command
- Object
- CLAide::Command
- KCommercial::KCPipeline::Command
- KCommercial::KCPipeline::Command::AppDemo
- Defined in:
- lib/KCommercialPipeline/command/app_runner.rb
Instance Attribute Summary collapse
-
#addition_slices ⇒ Object
readonly
Returns the value of attribute addition_slices.
-
#app_id ⇒ Object
Returns the value of attribute app_id.
-
#build_type ⇒ Object
Returns the value of attribute build_type.
-
#keep_task_id ⇒ Object
Returns the value of attribute keep_task_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ AppDemo
constructor
A new instance of AppDemo.
- #run ⇒ Object
Methods inherited from KCommercial::KCPipeline::Command
Constructor Details
#initialize(argv) ⇒ AppDemo
Returns a new instance of AppDemo.
21 22 23 24 25 26 |
# File 'lib/KCommercialPipeline/command/app_runner.rb', line 21 def initialize(argv) @build_type = argv.option('build_type') @keep_task_id = argv.option('keep_task_id') || 0 @slice_paths = argv.('slice') super end |
Instance Attribute Details
#addition_slices ⇒ Object (readonly)
Returns the value of attribute addition_slices.
10 11 12 |
# File 'lib/KCommercialPipeline/command/app_runner.rb', line 10 def addition_slices @addition_slices end |
#app_id ⇒ Object
Returns the value of attribute app_id.
7 8 9 |
# File 'lib/KCommercialPipeline/command/app_runner.rb', line 7 def app_id @app_id end |
#build_type ⇒ Object
Returns the value of attribute build_type.
8 9 10 |
# File 'lib/KCommercialPipeline/command/app_runner.rb', line 8 def build_type @build_type end |
#keep_task_id ⇒ Object
Returns the value of attribute keep_task_id.
9 10 11 |
# File 'lib/KCommercialPipeline/command/app_runner.rb', line 9 def keep_task_id @keep_task_id end |
Class Method Details
.options ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/KCommercialPipeline/command/app_runner.rb', line 14 def self. [ ['--build_type',"Debug or Release"], ['--keep_task_id',"keep组件任务id"], ['--slice=PATH', 'The path of the slice that is addition'], ].concat(super) end |