Updating Mashup Scripts from the Command Line
You update metadata, such as tags or the description, of a mashup in Presto Hub just as you would with any mashable information source that you had published.
To update the behavior of mashup scripts that you have published in Presto, you must be the owner of the mashup (the user that first published this mashup script) or have Presto administrator privileges. You can update the mashup in Mashup Editor or use the command line.
To update a mashup from the command line
2. Turn the mashup off in Presto Hub.
3. Test the new mashup script.
4. Open a command window and move to the presto-instalation/prestocli/bin folder.
You may wish to put a copy of the updated mashup script in this directory to simplify paths.
5. Enter the emmlupd command in this form:
emmlupd -f mashup-script-filename-u user-name-p password[-url remote-presto-url-s mashup-ID]
Use your user name and password for
Presto.
The URL is optional. It defaults to
http://localhost:app-server-port/presto/edge/api where
app-server-port is the port defined when you installed
Presto.
If you need to update this mashup on a remote server or the default host or port is incorrect, use -url http://app-server:port/presto/edge/api with the appropriate application server address and port.
The mashup ID is optional. If you omit this option,
Presto uses the name for the mashup supplied in the <mashup> tag in the mashup script to identify the mashup to update.
Tip: | Mashup owners and Presto administrators can change mashup names in Presto Hub. It is a good practice to provide the mashup ID to properly identify the mashup you want to update. |
6. Turn the mashup back on in Presto Hub.