Exemple #1
0
 def run(self):
     os.system("make clean")
     commands = """
         python setup.py install
         python setup.py bdist_wheel            
         python setup.py sdist --format=bztar,zip upload
         python setup.py bdist_wheel upload
         """
     os_execute(commands)
Exemple #2
0
 def run(self):
     banner("Install readline")
     commands = None
     this_platform = platform.system().lower()
     if this_platform in ['darwin']:
         commands = """
             easy_install readline
             """
     elif this_platform in ['windows']:
         commands = """
             pip install pyreadline
             """
     if commands:
         os_execute(commands)
     banner("Install Cloudmesh_portal {:}".format(__version__))
     install.run(self)
Exemple #3
0
    def do_portal(self, args, arguments):
        """
        ::

            Usage:
                portal start
                portal stop

            Examples:
                portal start
                    starts the portal and opens the default web page

                portal stop
                    stops the portal

        """
        if arguments["start"]:
            ValueError("Not yet implemented")

            data = self.get_conf()
            commands = """
                cd {location}; make run &
                cd {location}; make view &
                """.format(**data)
            print(data)
            os_execute(commands)

        if arguments["start"]:
            ValueError("Not yet implemented")

            data = self.get_conf()
            commands = """
                cd {location}; make run
                """.format(**data)
            print(data)
            os_execute(commands)

        elif arguments["stop"]:
            ValueError("Not yet implemented")

        return ""