Class: Boring::Pronto::GitlabCi::InstallGenerator
- Inherits:
-
BaseGenerator
- Object
- Rails::Generators::Base
- BaseGenerator
- Boring::Pronto::GitlabCi::InstallGenerator
- Includes:
- BoringGenerators::GeneratorHelper
- Defined in:
- lib/generators/boring/pronto/gitlab_ci/install/install_generator.rb
Instance Method Summary collapse
Methods included from BoringGenerators::GeneratorHelper
#app_ruby_version, #bundle_install, #check_and_install_gem, #gem_installed?, #inject_into_file_if_new
Methods inherited from BaseGenerator
Instance Method Details
#add_configuration ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/generators/boring/pronto/gitlab_ci/install/install_generator.rb', line 17 def add_configuration @ruby_version = .ruby_version || app_ruby_version if File.exist?(".gitlab-ci.yml") add_pronto_configuration add_lint_stage show_readme else create_gitlab_ci_with_pronto end end |