Sha256: 7322f18af63e080c2e35d7c63ee1314b983000bb976d763120989f685c8e103c
Contents?: true
Size: 485 Bytes
Versions: 1
Compression:
Stored size: 485 Bytes
Contents
require 'rails/generators' module Refills class ImportGenerator < Rails::Generators::Base desc 'Copy refills' source_root File.expand_path("../../../source", __FILE__) argument :snippet, type: :string, required: true def copy_html copy_file "_#{snippet}.html.erb", "app/views/refills/_#{snippet}.html.erb" end def copy_styles copy_file "stylesheets/refills/_#{snippet}.scss", "app/assets/stylesheets/refills/_#{snippet}.scss" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
refills-0.0.2 | lib/refills/import_generator.rb |