ruby on rails - Can you make folder with rake build? -
i have no experience ruby or rake or anything, using slate api documentation, , uses ruby , rake , stuff build file. know nothing @ these things, know this: when rake build updates folder (slate/build). have manually copy slate/build ../app/docs after every single rake build. there can copy folder on every rake build automatically me?
add rakefile:
root = file.expand_path('..', __file__) task :build_and_move => [:build] cp_r(file.join(root, 'slate/build'), file.join(root, '../app/docs')) # or # mv(file.join(root, 'slate/build'), file.join(root, '../app/docs')) end and run rake build_and_move.
Comments
Post a Comment