Class: KCommercial::KCPipeline::Command::CommentPublisher
- Inherits:
-
KCommercial::KCPipeline::Command
- Object
- CLAide::Command
- KCommercial::KCPipeline::Command
- KCommercial::KCPipeline::Command::CommentPublisher
- Defined in:
- lib/KCommercialPipeline/command/ios_publish_component.rb
Instance Attribute Summary collapse
-
#auto_version ⇒ Object
Returns the value of attribute auto_version.
-
#component ⇒ Object
Returns the value of attribute component.
-
#influence ⇒ Object
Returns the value of attribute influence.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ CommentPublisher
constructor
A new instance of CommentPublisher.
- #run ⇒ Object
Methods inherited from KCommercial::KCPipeline::Command
Constructor Details
#initialize(argv) ⇒ CommentPublisher
Returns a new instance of CommentPublisher.
28 29 30 31 32 33 34 |
# File 'lib/KCommercialPipeline/command/ios_publish_component.rb', line 28 def initialize(argv) @component = argv.option('component') @type = argv.option('type') || 'alpha' @influence = argv.option('influence') || false @auto_version = argv.option('auto_version') || 'false' super end |
Instance Attribute Details
#auto_version ⇒ Object
Returns the value of attribute auto_version.
12 13 14 |
# File 'lib/KCommercialPipeline/command/ios_publish_component.rb', line 12 def auto_version @auto_version end |
#component ⇒ Object
Returns the value of attribute component.
9 10 11 |
# File 'lib/KCommercialPipeline/command/ios_publish_component.rb', line 9 def component @component end |
#influence ⇒ Object
Returns the value of attribute influence.
11 12 13 |
# File 'lib/KCommercialPipeline/command/ios_publish_component.rb', line 11 def influence @influence end |
#type ⇒ Object
Returns the value of attribute type.
10 11 12 |
# File 'lib/KCommercialPipeline/command/ios_publish_component.rb', line 10 def type @type end |
Class Method Details
.options ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/KCommercialPipeline/command/ios_publish_component.rb', line 19 def self. [ ['--component', "一键发布组件名称"], ['--type', "patch or alpha,default alpha"], ['--influence', "是否传递依赖,default NO"], ['--auto_version', "版本是否自增,default YES"] ].concat(super) end |