16 lines
453 B
Ruby
16 lines
453 B
Ruby
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 |