Class: Satorix::Generators::CustomCiJobGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/rails/generators/satorix/custom_ci_job_generator.rb

Instance Method Summary collapse

Instance Method Details

#install_satorixObject



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/rails/generators/satorix/custom_ci_job_generator.rb', line 10

def install_satorix
  template 'custom_ci_job/satorix/custom.rb', 'satorix/custom.rb'
  template 'custom_ci_job/satorix/CI/deploy/mock_deploy.rb', 'satorix/CI/deploy/mock_deploy.rb'
  template 'custom_ci_job/satorix/CI/test/bare_bones.rb', 'satorix/CI/test/bare_bones.rb'
  template 'custom_ci_job/satorix/CI/test/info.rb', 'satorix/CI/test/info.rb'

  say ''
  say 'Satorix custom CI job examples have been added to your project.'
  say "Don't forget to add your new jobs to the gitlab-ci.yml file."
  say ''
end