Skip to content

Instantly share code, notes, and snippets.

@maxwellE
Created June 6, 2013 21:55
Show Gist options
  • Save maxwellE/5725322 to your computer and use it in GitHub Desktop.
Save maxwellE/5725322 to your computer and use it in GitHub Desktop.
namespace :generate do
desc 'Generate FLMS views in host app for additional styling'
task :views do
host_view_dir = File.expand_path("../../../app/views/flms/*", __FILE__)
unless Dir.exists?("app/views/flms")
FileUtils.mkdir "app/views/flms"
FileUtils.cp_r Dir[host_view_dir], "app/views/flms/"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment