Exemplo n.º 1
0
# Untag Alembic command
import abc
from Command import AbstractCommand

class UntagAlembic():

	def execute(self):
		print "Executing Untag Alembic"


AbstractCommand.register(UntagAlembic)
Exemplo n.º 2
0
# Export Alembic command
import abc
from Command import AbstractCommand

class ExportAlembic():

	def execute(self):
		print "Executing Export Alembic"


AbstractCommand.register(ExportAlembic)
Exemplo n.º 3
0
# Checkin command
import abc
from Command import AbstractCommand


class Checkin():
    def execute(self):
        print "Executing Checkin"


AbstractCommand.register(Checkin)
Exemplo n.º 4
0
# Unlock command
import abc
from Command import AbstractCommand

class Unlock():

	def execute(self):
		print "Executing Unlock"


AbstractCommand.register(Unlock)
Exemplo n.º 5
0
# Version command
import abc
from Command import AbstractCommand

class Version():

	def execute(self):
		print "Executing Version"


AbstractCommand.register(Version)
Exemplo n.º 6
0
# Rollback command
import abc
from Command import AbstractCommand

class Rollback():

	def execute(self):
		print "Executing Rollback"


AbstractCommand.register(Rollback)
Exemplo n.º 7
0
# Discard command
import abc
from Command import AbstractCommand


class Discard:
    def execute(self):
        print "Executing Discard"


AbstractCommand.register(Discard)
Exemplo n.º 8
0
# Rename command
import abc
from Command import AbstractCommand

class Rename():

	def execute(self):
		print "Executing Rename"


AbstractCommand.register(Rename)
Exemplo n.º 9
0
# Checkout command
import abc
from Command import AbstractCommand


class Checkout():
    def execute(self):
        print "Executing Checkout"


AbstractCommand.register(Checkout)

if __name__ == '__main__':
    Checkout().execute()
    print 'Subclass:', issubclass(Checkout, AbstractCommand)
    print 'Instance:', isinstance(Checkout(), AbstractCommand)
Exemplo n.º 10
0
# Checkout command
import abc
from Command import AbstractCommand

class Checkout():

	def execute(self):
		print "Executing Checkout"


AbstractCommand.register(Checkout)

if __name__ == '__main__':
	Checkout().execute()
	print 'Subclass:', issubclass(Checkout, AbstractCommand)
	print 'Instance:', isinstance(Checkout(), AbstractCommand)
Exemplo n.º 11
0
# Version command
import abc
from Command import AbstractCommand


class Version():
    def execute(self):
        print "Executing Version"


AbstractCommand.register(Version)
Exemplo n.º 12
0
# Checkin command
import abc
from Command import AbstractCommand

class Checkin():

	def execute(self):
		print "Executing Checkin"


AbstractCommand.register(Checkin)
Exemplo n.º 13
0
# Rollback command
import abc
from Command import AbstractCommand


class Rollback():
    def execute(self):
        print "Executing Rollback"


AbstractCommand.register(Rollback)
Exemplo n.º 14
0
# Tag Alembic command
import abc
from Command import AbstractCommand

class TagAlembic():

	def execute(self):
		print "Executing Tag Alembic"


AbstractCommand.register(TagAlembic)
Exemplo n.º 15
0
# Discard command
import abc
from Command import AbstractCommand


class Discard():
    def execute(self):
        print "Executing Discard"


AbstractCommand.register(Discard)
Exemplo n.º 16
0
# Unlock command
import abc
from Command import AbstractCommand


class Unlock():
    def execute(self):
        print "Executing Unlock"


AbstractCommand.register(Unlock)