Class: RailsAppGenerator::AddOns::ContinuousIntegration

Inherits:
RailsAppGenerator::Addon show all
Defined in:
lib/rails_app_generator/addons/continuous_integration.rb

Overview

Add GitHub Actions continuous integration

Instance Attribute Summary

Attributes inherited from RailsAppGenerator::Addon

#context, #dependencies, #gem_entries

Instance Method Summary collapse

Methods inherited from RailsAppGenerator::Addon

addon_name, dependencies, depends_on, gem, gem_entries, #initialize, required_gem, reset_gem_entries

Constructor Details

This class inherits a constructor from RailsAppGenerator::Addon

Instance Method Details

#applyObject

Requires Testing



9
10
11
12
# File 'lib/rails_app_generator/addons/continuous_integration.rb', line 9

def apply
  say 'continuous integration - Setup GitHub Actions'
  template('github/workflows/build.yml.erb', '.github/workflows/build.yml')
end