Class: Boring::Pronto::GithubAction::InstallGenerator

Inherits:
BaseGenerator
  • Object
show all
Includes:
BoringGenerators::GeneratorHelper
Defined in:
lib/generators/boring/pronto/github_action/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

#add_pronto_gems

Instance Method Details

#add_pronto_configuration_for_github_actionObject



17
18
19
20
21
22
23
# File 'lib/generators/boring/pronto/github_action/install/install_generator.rb', line 17

def add_pronto_configuration_for_github_action
  say "Adding Pronto configurations to .github/workflows/pronto.yml", :green

  @ruby_version = options.ruby_version || app_ruby_version
  
  template("pronto.yml", ".github/workflows/pronto.yml")
end