Sha256: b6aabdd8b1cb1e6db1fc5f218753c8b9bd7fcce29936b51cf1610594a53b8d30
Contents?: true
Size: 399 Bytes
Versions: 4
Compression:
Stored size: 399 Bytes
Contents
def run_templates_install_template(path) system "#{RbConfig.ruby} ./bin/rails app:template LOCATION=#{File.expand_path("../install/#{path}.rb", __dir__)}" end namespace :templates do desc 'Install Templates' task :install do if Rails.root.join('config/routes.rb').exist? run_templates_install_template 'templates' else puts 'config/routes.rb file found' end end end
Version data entries
4 entries across 4 versions & 1 rubygems