% GNU General Public License for more details.\r
%\r
% You should have received a copy of the GNU General Public License\r
% GNU General Public License for more details.\r
%\r
% You should have received a copy of the GNU General Public License\r
-% This file replace the old one 'tools.rb' written in a crapy language ;)
-% TODO :
-% - création de unit tests (voir eunit) et validation avant la mise en prod
+% This file replace the old one 'tools.rb' written in a crapy language ;)\r
+% TODO :\r
+% - création de unit tests (voir eunit) et validation avant la mise en prod\r
% A simple fonction to log message.\r
log(Str) ->\r
io:format("===== ~s =====~n", [Str]).\r
% A simple fonction to log message.\r
log(Str) ->\r
io:format("===== ~s =====~n", [Str]).\r
cmd(Commande_str, Params) ->\r
io:format("~s~n", [os:cmd(lists:flatten(io_lib:format(Commande_str, Params)))]).\r
\r
cmd(Commande_str, Params) ->\r
io:format("~s~n", [os:cmd(lists:flatten(io_lib:format(Commande_str, Params)))]).\r
\r
% Copy all static files like modules, styles, pages, etc.\r
copy_static_part(Uri) ->\r
%~ creer_rep('modules')\r
%~ system("rsync -r --exclude 'euphorik_test.beam' modules/ebin #{@uri}:#{@rep}/modules")\r
%~ system("rsync -r modules/include #{@uri}:#{@rep}/modules")\r
todo.\r
% Copy all static files like modules, styles, pages, etc.\r
copy_static_part(Uri) ->\r
%~ creer_rep('modules')\r
%~ system("rsync -r --exclude 'euphorik_test.beam' modules/ebin #{@uri}:#{@rep}/modules")\r
%~ system("rsync -r modules/include #{@uri}:#{@rep}/modules")\r
todo.\r