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

Methods included from Actions

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

Instance Method Details

#configure_ciObject



18
19
20
# File 'lib/suspenders/generators/ci_generator.rb', line 18

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

#simplecov_test_integrationObject



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/suspenders/generators/ci_generator.rb', line 5

def simplecov_test_integration
  inject_into_file "spec/spec_helper.rb", before: 'SimpleCov.start "rails"' do
    <<-RUBY

  if ENV["CIRCLE_ARTIFACTS"]
dir = File.join(ENV["CIRCLE_ARTIFACTS"], "coverage")
SimpleCov.coverage_dir(dir)
  end

    RUBY
  end
end