DEL suppression de la decription du protocole (passé dans le wiki)
[euphorik.git] / tools / tools.rb
index 644c825..75d3602 100644 (file)
@@ -19,20 +19,16 @@ along with Euphorik.  If not, see <http://www.gnu.org/licenses/>.
 =end
 \r
 #TODO :\r
-# - mettre à jour les numéros de versions en appelant le script "cope_num_version.rb"\r
-# - création de unit tests (voir eunit) et validation avant la mise en prod
-
-# Utilisation :
-#  tools.rb <commande> <args>
-# commandes :
-#  \r
+# - mettre à jour les numéros de versions (créer une classe)\r
+# - création de unit tests (voir eunit) et validation avant la mise en prod\r
+# - faire une classe qui vérifie tous les js avec jslint\r
 \r
 class MiseEnProd\r
    @@rep_remote = '/var/www/euphorik'\r
    @@host = 'euphorik.ch'\r
    @@opt_rsync = ''\r
    \r
-   def initialize  \r
+   def initialize      \r
    end  \r
 \r
    def creer_remote_rep(rep)      \r
@@ -60,19 +56,12 @@ class MiseEnProd
    end\r
    \r
    # css, images, html, etc..\r
-   def copier_partie_statique      
-      copier_fichier_html("index.yaws")
-      
-      ####print `rsync #{$opt_rsync} index.yaws #{$host}:#{$rep_remote}`\r
-      #print `rsync #{$opt_rsync} favicon.ico #{$host}:#{$rep_remote}`\r
-      #print `rsync #{$opt_rsync} -r css #{$host}:#{$rep_remote}`\r
-      #print `rsync #{$opt_rsync} -r pages #{$host}:#{$rep_remote}`\r
-      #print `rsync #{$opt_rsync} -r --exclude 'autres' img #{$host}:#{$rep_remote}`      \r
-   end
-   
-   # Copie un fichier html, enlève les balises qui ont comme attribut : prod="delete"
-   def copier_fichier_htm(fichier)
-      
+   def copier_partie_statique      \r
+      print `rsync #{$opt_rsync} index.yaws #{$host}:#{$rep_remote}`\r
+      print `rsync #{$opt_rsync} favicon.ico #{$host}:#{$rep_remote}`\r
+      print `rsync #{$opt_rsync} -r css #{$host}:#{$rep_remote}`\r
+      print `rsync #{$opt_rsync} -r pages #{$host}:#{$rep_remote}`\r
+      print `rsync #{$opt_rsync} -r --exclude 'autres' img #{$host}:#{$rep_remote}`      \r
    end\r
    \r
    # contrôle des fichiers js à l'aide de jslint\r