Class: KCommercial::KCPipeline::Command::AutoReleaseCMD
- Inherits:
-
KCommercial::KCPipeline::Command
- Object
- CLAide::Command
- KCommercial::KCPipeline::Command
- KCommercial::KCPipeline::Command::AutoReleaseCMD
- Defined in:
- lib/KCommercialPipeline/command/rb_auto.rb
Instance Attribute Summary collapse
-
#app_id ⇒ Object
readonly
Returns the value of attribute app_id.
-
#branch_name ⇒ Object
readonly
Returns the value of attribute branch_name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ AutoReleaseCMD
constructor
A new instance of AutoReleaseCMD.
- #run ⇒ Object
Methods inherited from KCommercial::KCPipeline::Command
Constructor Details
#initialize(argv) ⇒ AutoReleaseCMD
Returns a new instance of AutoReleaseCMD.
19 20 21 22 |
# File 'lib/KCommercialPipeline/command/rb_auto.rb', line 19 def initialize(argv) @branch_name = argv.option('name') || "" super end |
Instance Attribute Details
#app_id ⇒ Object (readonly)
Returns the value of attribute app_id.
8 9 10 |
# File 'lib/KCommercialPipeline/command/rb_auto.rb', line 8 def app_id @app_id end |
#branch_name ⇒ Object (readonly)
Returns the value of attribute branch_name.
9 10 11 |
# File 'lib/KCommercialPipeline/command/rb_auto.rb', line 9 def branch_name @branch_name end |
Class Method Details
.options ⇒ Object
13 14 15 16 17 |
# File 'lib/KCommercialPipeline/command/rb_auto.rb', line 13 def self. [ ['--name', 'The new release branch name,defaut auto increase' ], ].concat(super ) end |
Instance Method Details
#run ⇒ Object
24 25 26 |
# File 'lib/KCommercialPipeline/command/rb_auto.rb', line 24 def run AutoRelease.new(@branch_name).run! end |