Sha256: ae02146682dd707b4e96502cd4f80dc5de1b1193f7d84e701628036d0729767d
Contents?: true
Size: 1.48 KB
Versions: 1
Compression:
Stored size: 1.48 KB
Contents
module Bretelline module Builders class Solidus < Rails::AppBuilder def gemfile template "solidus_gemfile.erb", "Gemfile" end def setup solidus rspec ci rubocop end def readme template 'README.md.erb', 'README.md' end private def solidus bundle_command "exec rails g spree:install --sample=false" bundle_command "exec rails g solidus:auth:install" bundle_command "exec rake railties:install:migrations" empty_directory_with_keep_file 'app/overrides' end def rspec bundle_command "exec rails generate rspec:install" directory 'spec/support' remove_file 'spec/rails_helper.rb' copy_file 'spec/rails_helper.rb', 'spec/rails_helper.rb' prepend_to_file 'spec/spec_helper.rb', "require 'support/simplecov'\n" empty_directory_with_keep_file 'spec/features' empty_directory_with_keep_file 'spec/models' empty_directory_with_keep_file 'spec/controllers' empty_directory_with_keep_file 'spec/jobs' empty_directory_with_keep_file 'spec/pages/sections' empty_directory_with_keep_file 'spec/factories' remove_file 'bin/rails' copy_file 'bin_rails', 'bin/rails' end def ci copy_file 'circle.yml', 'circle.yml' end def rubocop copy_file 'rubocop.yml', '.rubocop.yml' bundle_command 'exec rubocop -a' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bretelline-0.2.0 | lib/bretelline/builders/solidus.rb |