Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)

        def get_resource(path):
    return resource_string(__name__, path)
        


src/s/e/serverondemand-0.0.2/serverondemand/demand.py   serverondemand(Download)
from paramiko import RSAKey
 
from serverondemand import get_resource
from serverondemand.xen import instance_id, instance_name
from serverondemand.executor import Executor
                "RS_USERNAME='%s'\n" % self.agent_username +
                "RS_APIKEY='%s'\n" % self.agent_apikey +
                get_resource('xen.py') +
                get_resource('resources/demand_done.py'))
 
        self._write_sftp_file(sftp, '/root/bootstrap.sh',
                get_resource('resources/bootstrap.sh'), 0755)