X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;ds=sidebyside;f=tools%2Ftools.rb;h=75d3602a44a1a4a6a9076d61c81a37e074e75169;hb=d8ea5d4c3a3ed6e596a473bbb8a4df0a41b4843a;hp=644c82564f9ad5f826b29d8c074c6f997424ba45;hpb=4dfbbcf0f54cb3eb70856ea404d9ecef6aec5e26;p=euphorik.git
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