Class: KCommercial::KCPipeline::Command::AutoReleaseCMD

Inherits:
KCommercial::KCPipeline::Command show all
Defined in:
lib/KCommercialPipeline/command/rb_auto.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from KCommercial::KCPipeline::Command

#validate!

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_idObject (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_nameObject (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

.optionsObject



13
14
15
16
17
# File 'lib/KCommercialPipeline/command/rb_auto.rb', line 13

def self.options
  [
    ['--name', 'The new release branch name,defaut auto increase' ],
  ].concat(super )
end

Instance Method Details

#runObject



24
25
26
# File 'lib/KCommercialPipeline/command/rb_auto.rb', line 24

def run
  AutoRelease.new(@branch_name).run!
end