Class: Boring::Ci::Circleci::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Boring::Ci::Circleci::InstallGenerator
- Defined in:
- lib/generators/boring/ci/circleci/install/install_generator.rb
Constant Summary collapse
- DEFAULT_RUBY_VERSION =
"2.7.1"
- DEFAULT_REPOSITORY_NAME =
"boring_generators"
Instance Method Summary collapse
Instance Method Details
#add_circle_ci_configuration ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/generators/boring/ci/circleci/install/install_generator.rb', line 20 def add_circle_ci_configuration @skip_node = [:skip_node] @ruby_version = [:ruby_version] ? [:ruby_version] : DEFAULT_RUBY_VERSION @repository_name = [:repository_name] ? [:repository_name] : DEFAULT_REPOSITORY_NAME template("config.psql.yml", ".circleci/config.yml") template("database.yml.ci", "config/database.yml.ci") end |