def prep_multipart_files(work_dir, server_cfg):
  vars_path=pentaho_cloud.mk_vars_file(work_dir, server_cfg, 'rackspace')
  shutil.copyfile(server_cfg.res_dir + '/pentaho-init', work_dir + '/pentaho-init')
  shutil.copyfile(server_cfg.res_dir + '/util.py', work_dir + '/util.py')
  shutil.copyfile(server_cfg.res_dir + '/octet-stream-handler.py', work_dir + '/octet-stream-handler.py')
  key_helper_jar=pentaho_cloud.mk_key_helper_jar(work_dir, server_cfg.res_dir)
  # use '|' symbols since Windows paths will contain ':' symbols
  return [vars_path + '|text/x-shellscript', work_dir + '/pentaho-init|text/x-shellscript', work_dir + '/util.py|text/x-shellscript', work_dir + '/octet-stream-handler.py|text/part-handler', key_helper_jar + '|application/octet-stream']
def prep_files(work_dir, server_cfg):
  vars_path=pentaho_cloud.mk_vars_file(work_dir, server_cfg, 'amazon')
  shutil.copyfile(server_cfg.res_dir + '/pentaho-init', work_dir + '/pentaho-init')
  shutil.copyfile(server_cfg.res_dir + '/util.py', work_dir + '/util.py')
  shutil.copyfile(server_cfg.res_dir + '/octet-stream-handler.py', work_dir + '/octet-stream-handler.py')
  license_tarball_path=pentaho_cloud.mk_license_tarball(work_dir, server_cfg.license_dir)
  # use '|' symbols since Windows paths will contain ':' symbols
  return [vars_path + '|text/x-shellscript', work_dir + '/pentaho-init|text/x-shellscript', work_dir + '/util.py|text/x-shellscript', work_dir + '/octet-stream-handler.py|text/part-handler', license_tarball_path+'|application/octet-stream']
예제 #3
0
def prep_multipart_files(work_dir, server_cfg):
    vars_path = pentaho_cloud.mk_vars_file(work_dir, server_cfg, 'rackspace')
    shutil.copyfile(server_cfg.res_dir + '/pentaho-init',
                    work_dir + '/pentaho-init')
    shutil.copyfile(server_cfg.res_dir + '/util.py', work_dir + '/util.py')
    shutil.copyfile(server_cfg.res_dir + '/octet-stream-handler.py',
                    work_dir + '/octet-stream-handler.py')
    key_helper_jar = pentaho_cloud.mk_key_helper_jar(work_dir,
                                                     server_cfg.res_dir)
    # use '|' symbols since Windows paths will contain ':' symbols
    return [
        vars_path + '|text/x-shellscript',
        work_dir + '/pentaho-init|text/x-shellscript',
        work_dir + '/util.py|text/x-shellscript',
        work_dir + '/octet-stream-handler.py|text/part-handler',
        key_helper_jar + '|application/octet-stream'
    ]
예제 #4
0
def prep_files(work_dir, server_cfg):
    vars_path = pentaho_cloud.mk_vars_file(work_dir, server_cfg, 'amazon')
    shutil.copyfile(server_cfg.res_dir + '/pentaho-init',
                    work_dir + '/pentaho-init')
    shutil.copyfile(server_cfg.res_dir + '/util.py', work_dir + '/util.py')
    shutil.copyfile(server_cfg.res_dir + '/octet-stream-handler.py',
                    work_dir + '/octet-stream-handler.py')
    license_tarball_path = pentaho_cloud.mk_license_tarball(
        work_dir, server_cfg.license_dir)
    # use '|' symbols since Windows paths will contain ':' symbols
    return [
        vars_path + '|text/x-shellscript',
        work_dir + '/pentaho-init|text/x-shellscript',
        work_dir + '/util.py|text/x-shellscript',
        work_dir + '/octet-stream-handler.py|text/part-handler',
        license_tarball_path + '|application/octet-stream'
    ]