Publishing Cameo Collaborator documents is the simplest way to present models to stakeholders, sponsors, customers, and engineering teams. This chapter explains how to publish documents from the command line, which is useful if you want to publish them periodically, e.g., once a day or during non-business hours to save time.
|
|
|
To publish a Cameo Collaborator document from the command line interface
Read the comments in the file and specify the publishing options.
Go to the <modeling tool installation directory>/plugins/com.nomagic.collaborator.publisher directory containing the executive file for model publishing.
Execute the following command:
On Windows
publish.exe properties=<modeling_tool_installation_directory>\plugins\com.nomagic.collaborator.publisher\PowerBy_template.properties |
On OS X or Linux
./publish properties=<modeling_tool_installation_directory>/plugins/com.nomagic.collaborator.publisher/PowerBy_template.properties |
After completing the steps above, your model is published to Cameo Collaborator. If you want to publish the same model frequently, you do not need to do it manually every time. Instead, schedule publishing as a background task to save time.
If you need to publish your models periodically and/or during non-business hours, you can schedule them to be published automatically. The following procedures describe the scheduling process on Windows and Linux operating systems.
To schedule a publishing task on Windows
To schedule the publishing to start automatically, select the Start a program radio button and click Next.
Click the Browse button, go to the <modeling tool installation directory>/plugins/com.nomagic.collaborator.publisher directory, and open the publish.exe file.
In the Add Arguments (optional) box, type properties=<modeling_tool_installation_directory>\plugins\com.nomagic.collaborator.publisher\template.properties and click Next.
To schedule a publishing task on Linux
Type the following command to open the crontab file with the default text editor:
# crontab -e |
0 0 * * * <modeling tool installation directory>/plugins/com.nomagic.collaborator.publisher/publish.sh -properties PowerBy_template.properties |
After completing the steps described above, your model is published automatically on a regular basis at a specified time.