Class: Gct::Command::Unskip::Modular

Inherits:
Gct::Command::Unskip show all
Defined in:
lib/gct/command/unskip/modular.rb

Instance Method Summary collapse

Methods inherited from Gct::Command

#auto_add_tag, #check_branch_can_be_update, #config_gitlab, #current_branch, #file_contents, #get_project, #gitlab_error, options, run

Constructor Details

#initialize(argv) ⇒ Modular

Returns a new instance of Modular.



18
19
20
21
# File 'lib/gct/command/unskip/modular.rb', line 18

def initialize(argv)
  @pod_name = argv.shift_argument
  super
end

Instance Method Details

#runObject



23
24
25
26
27
# File 'lib/gct/command/unskip/modular.rb', line 23

def run
  db = Database::Data.new
  sql = "delete from modular_headers where pod_name = '#{@pod_name}'"
  res = db.query(sql)
end