Class: GitlabGenerator

Inherits:
Generator
  • Object
show all
Defined in:
lib/generators/infrastructure/gitlab_generator.rb

Constant Summary

Constants inherited from Generator

Generator::LATEST_RUBY

Instance Method Summary collapse

Methods inherited from Generator

#allure_reporter?, #android?, #args, #axe_addon?, #capybara?, #cross_platform?, #cucumber?, #ios?, #json_reporter?, #junit_reporter?, #lighthouse_addon?, #minitest?, #mobile?, #rspec?, #ruby_version, #selenium?, #selenium_based?, #single_platform?, #skip_allure?, #skip_video?, source_paths, #visual_addon?, #watir?, #web?

Methods included from TemplateRenderer

included, #partial

Instance Method Details

#generate_gitlab_fileObject



6
7
8
9
10
# File 'lib/generators/infrastructure/gitlab_generator.rb', line 6

def generate_gitlab_file
  return unless web?

  template('gitlab.tt', "#{name}/gitlab-ci.yml")
end