Sha256: c36ac31804236aa66cd3497d6fe8da53bef4f0b886ff5ca083ae8e9a24adea21
Contents?: true
Size: 1.07 KB
Versions: 3
Compression:
Stored size: 1.07 KB
Contents
module Gemsmith module Skeletons class RailsSkeleton < BaseSkeleton def create_engine system "rails plugin new #{template_options.fetch :gem_name} #{engine_options}" end def create_generator_files empty_directory "#{generator_root}/templates" template "#{generator_root}/install/install_generator.rb.tt", template_options template "#{generator_root}/install/USAGE.tt", template_options template "#{generator_root}/upgrade/upgrade_generator.rb.tt", template_options template "#{generator_root}/upgrade/USAGE.tt", template_options end def create_travis_gemfiles if template_options[:travis] template "%gem_name%/gemfiles/rails-4.1.x.gemfile.tt", template_options end end private def engine_options "--skip --skip-bundle --skip-test-unit --skip-keeps --mountable --dummy-path=spec/dummy" end def lib_gem_root "#{lib_root}/%gem_name%" end def generator_root "#{lib_root}/generators/%gem_name%" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gemsmith-4.3.0 | lib/gemsmith/skeletons/rails_skeleton.rb |
gemsmith-4.2.0 | lib/gemsmith/skeletons/rails_skeleton.rb |
gemsmith-4.1.0 | lib/gemsmith/skeletons/rails_skeleton.rb |