Class: Gct::Command::Init::Ci
- Inherits:
-
Gct::Command::Init
- Object
- CLAide::Command
- Gct::Command
- Gct::Command::Init
- Gct::Command::Init::Ci
- Defined in:
- lib/gct/command/init/ci.rb
Instance Method Summary collapse
-
#initialize(argv) ⇒ Ci
constructor
A new instance of Ci.
- #run ⇒ Object
- #validate! ⇒ 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) ⇒ Ci
Returns a new instance of Ci.
14 15 16 |
# File 'lib/gct/command/init/ci.rb', line 14 def initialize(argv) super end |
Instance Method Details
#run ⇒ Object
22 23 24 25 26 |
# File 'lib/gct/command/init/ci.rb', line 22 def run puts "init ci".green cp_path = Pathname.new(__FILE__).parent + 'ios-ci.rb' system "cp #{cp_path} .gitlab-ci.yml" end |
#validate! ⇒ Object
18 19 20 |
# File 'lib/gct/command/init/ci.rb', line 18 def validate! super end |