engine/lib/generators/locomotive/assets/assets_generator.rb

16 lines
453 B
Ruby
Raw Normal View History

module Locomotive
class AssetsGenerator < Rails::Generators::Base
def self.source_root
puts "(before) source_root = #{@_locomotive_source_root}"
@_locomotive_source_root ||= File.expand_path("../../../../../", __FILE__)
puts "(after) source_root = #{@_locomotive_source_root}"
@_locomotive_source_root
end
def copy_public_files
directory "public", "public", :recursive => true
end
end
end