X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=tools%2Ftools.rb;h=75d3602a44a1a4a6a9076d61c81a37e074e75169;hp=644c82564f9ad5f826b29d8c074c6f997424ba45;hb=4708cea3e56946707cd391b3a5442c48b2045254;hpb=d0a68333e392d0aac61b612a07dd9cc80c4eeb93 diff --git a/tools/tools.rb b/tools/tools.rb index 644c825..75d3602 100644 --- a/tools/tools.rb +++ b/tools/tools.rb @@ -19,20 +19,16 @@ along with Euphorik. If not, see . =end #TODO : -# - mettre à jour les numéros de versions en appelant le script "cope_num_version.rb" -# - création de unit tests (voir eunit) et validation avant la mise en prod - -# Utilisation : -# tools.rb -# commandes : -# +# - mettre à jour les numéros de versions (créer une classe) +# - création de unit tests (voir eunit) et validation avant la mise en prod +# - faire une classe qui vérifie tous les js avec jslint class MiseEnProd @@rep_remote = '/var/www/euphorik' @@host = 'euphorik.ch' @@opt_rsync = '' - def initialize + def initialize end def creer_remote_rep(rep) @@ -60,19 +56,12 @@ class MiseEnProd end # css, images, html, etc.. - def copier_partie_statique - copier_fichier_html("index.yaws") - - ####print `rsync #{$opt_rsync} index.yaws #{$host}:#{$rep_remote}` - #print `rsync #{$opt_rsync} favicon.ico #{$host}:#{$rep_remote}` - #print `rsync #{$opt_rsync} -r css #{$host}:#{$rep_remote}` - #print `rsync #{$opt_rsync} -r pages #{$host}:#{$rep_remote}` - #print `rsync #{$opt_rsync} -r --exclude 'autres' img #{$host}:#{$rep_remote}` - end - - # Copie un fichier html, enlève les balises qui ont comme attribut : prod="delete" - def copier_fichier_htm(fichier) - + def copier_partie_statique + print `rsync #{$opt_rsync} index.yaws #{$host}:#{$rep_remote}` + print `rsync #{$opt_rsync} favicon.ico #{$host}:#{$rep_remote}` + print `rsync #{$opt_rsync} -r css #{$host}:#{$rep_remote}` + print `rsync #{$opt_rsync} -r pages #{$host}:#{$rep_remote}` + print `rsync #{$opt_rsync} -r --exclude 'autres' img #{$host}:#{$rep_remote}` end # contrôle des fichiers js à l'aide de jslint