From 5ec70cea746d7f933a5dd2c26c3ef0d2a0f64186 Mon Sep 17 00:00:00 2001
From: Michal Svamberg <svamberg@civ.zcu.cz>
Date: Tue, 25 Apr 2023 23:28:12 +0200
Subject: [PATCH] ladeni pred prezentaci

---
 lib/method.dart         | 5 ++---
 test/optimize_test.dart | 2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/lib/method.dart b/lib/method.dart
index 966f3ea..b2949b8 100644
--- a/lib/method.dart
+++ b/lib/method.dart
@@ -13,18 +13,17 @@ class Method {
 
   String selectCommand(bool cond, String command, String last) {
     if (cond == true) {
-      print('+ $command'); // DEBUG
+      // print('+ $command'); // DEBUG
       return (last.isEmpty) ? command : last;
     }
     else {
-      print('- $command'); // DEBUG
+      // print('- $command'); // DEBUG
       return last;
     }
   }
 
   String getCommand() {
     String best = '';
-    print("SRC: ${src.getFqdn()} -> DST: ${dst.getFqdn()}");
     best = selectCommand(
         src.getFqdn() == dst.getFqdn() && src.isScpRemote(),
         "ssh ${src.getAsSsh()} 'cp ${opt.getAsCp()} ${src.getScpPath()} ${dst.getScpPath()}'",
diff --git a/test/optimize_test.dart b/test/optimize_test.dart
index 435ab7c..ba38a0c 100644
--- a/test/optimize_test.dart
+++ b/test/optimize_test.dart
@@ -57,7 +57,7 @@ void main() {
     test('green example', () {
       expect(Optimize(Options(
           ["/storage/brno2/home/userB/data", "/storage/brno2/project/X"], reparse: true)),
-          "ssh storage-brno6.metacentrum.cz 'cp  /home/userB/data /project/X'");
+          "ssh storage-brno2.metacentrum.cz 'cp  /home/userB/data /project/X'");
     });
 
 
-- 
GitLab