Class: Gct::Command::Skip::Modular
- Inherits:
-
Gct::Command::Skip
- Object
- CLAide::Command
- Gct::Command
- Gct::Command::Skip
- Gct::Command::Skip::Modular
- Defined in:
- lib/gct/command/skip/modular.rb
Instance Method Summary collapse
-
#initialize(argv) ⇒ Modular
constructor
A new instance of Modular.
- #run ⇒ Object
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/skip/modular.rb', line 18 def initialize(argv) @pod_name = argv.shift_argument super end |
Instance Method Details
#run ⇒ Object
23 24 25 26 27 |
# File 'lib/gct/command/skip/modular.rb', line 23 def run db = Database::Data.new sql = "insert into modular_headers (pod_name) values ('#{@pod_name}')" res = db.query(sql) end |