Class: Suspenders::CiGenerator

Inherits:
Generators::Base show all
Defined in:
lib/suspenders/generators/ci_generator.rb

Instance Method Summary collapse

Methods inherited from Generators::Base

default_source_root, inherited

Methods included from Actions

#action_mailer_asset_host, #action_mailer_host, #configure_environment, #expand_json, #replace_in_file

Instance Method Details

#configure_ciObject


14
15
16
# File 'lib/suspenders/generators/ci_generator.rb', line 14

def configure_ci
  template "circle.yml.erb", "circle.yml"
end

#simplecov_gemObject


5
6
7
8
# File 'lib/suspenders/generators/ci_generator.rb', line 5

def simplecov_gem
  gem "simplecov", require: false, group: [:test]
  Bundler.with_unbundled_env { run "bundle install" }
end

#simplecov_test_integrationObject


10
11
12
# File 'lib/suspenders/generators/ci_generator.rb', line 10

def simplecov_test_integration
  prepend_template_to_file(test_helper_file, "partials/ci_simplecov.rb")
end