Removed unnecessary method
authorFred <fmcell@gmail.com>
Mon, 18 Mar 2013 14:23:43 +0000 (22:23 +0800)
committerFred <fmcell@gmail.com>
Mon, 18 Mar 2013 16:04:18 +0000 (00:04 +0800)
lib/command.py
lib/commands/backup.py
lib/commands/behat.py
lib/commands/fix.py

index ce5c212..df1ecac 100644 (file)
@@ -66,12 +66,6 @@ class Command(object):
     def description(self):
         return self._description
 
-    def resolve(self, name):
-        return self.Wp.resolve(name)
-
-    def resolveMultiple(self, names):
-        return self.Wp.resolve(names)
-
     def run(self, args):
         return True
 
index 45057fe..60dd10f 100644 (file)
@@ -129,7 +129,7 @@ class BackupCommand(Command):
 
         # Backup the instance
         else:
-            M = self.resolve(name)
+            M = self.Wp.resolve(name)
             if not M:
                 raise Exception('This is not a Moodle instance')
 
index 3580ed9..9bdf052 100644 (file)
@@ -90,7 +90,7 @@ class BehatCommand(Command):
     def run(self, args):
 
         # Loading instance
-        M = self.resolve(args.name)
+        M = self.Wp.resolve(args.name)
         if not M:
             raise Exception('This is not a Moodle instance')
 
index d9b350f..97d41f2 100644 (file)
@@ -58,7 +58,7 @@ class FixCommand(Command):
     def run(self, args):
 
         # Loading instance
-        M = self.resolve(args.name)
+        M = self.Wp.resolve(args.name)
         if not M:
             raise Exception('This is not a Moodle instance')