Class: Boring::Ci::Circleci::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
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_configurationObject



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 = options[:skip_node]
  @ruby_version = options[:ruby_version] ? options[:ruby_version] : DEFAULT_RUBY_VERSION
  @repository_name = options[:repository_name] ? options[:repository_name] : DEFAULT_REPOSITORY_NAME

  template("config.psql.yml", ".circleci/config.yml")
  template("database.yml.ci", "config/database.yml.ci")
end