ADD betterjs qui regroupe les améliorations ajoutés à javascript (each, etc..)
[euphorik.git] / tools / tools.rb
index fe7eb9d..644c825 100644 (file)
@@ -20,14 +20,19 @@ along with Euphorik.  If not, see <http://www.gnu.org/licenses/>.
 \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\r
+# - création de unit tests (voir eunit) et validation avant la mise en prod
+
+# Utilisation :
+#  tools.rb <commande> <args>
+# commandes :
+#  \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
@@ -55,12 +60,19 @@ class MiseEnProd
    end\r
    \r
    # css, images, html, etc..\r
-   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
+   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)
+      
    end\r
    \r
    # contrôle des fichiers js à l'aide de jslint\r