The DeploymentManager VTOM object is a scriptable interface into the Allaire Project Deployment engine. It provides a collection of methods and properties to allow you to write highly customized VTOM scripts to control the deployment process.
Returns the count of folders associated with the current open project.
Allows you to perform a local deployment by overriding the assigned deployment server list. Instead the actual deployment path names assigned to the folders are used directly.
Returns the count of deployment servers associated with the current open project, including any new servers that have been added temporarily via the AddServer method.
This method allows you to temporarily add a machine level server to the list of deployment servers. This server does not become part of the Project's stored Deployment Server list, it is only a temporary server added for the purpose of custom deployment tasks.
Clears the internal list of servers assigned to the project. This method can be used when you want to override the default project deployment server list.
Returns the name of the server in the server list based on the index nServer. The internal server list array starts from a zero base.
Calculates the target deployment file name using the passed-in server name, and folder name, and an integer representing the folder file to use. This method is mainly used when you are iterating through all of the existing files in a folder. It calculates a server file target path, such as "Rds://localhost/D:/main/images/TestImage.jpg" which can be passed as the second argument to the UploadFile method.
Returns the deployment path of the passed folder name. This path can be used in conjunction with the GetDeployServer and GetFolderName methods
Returns the number of files tracked by the passed-in project folder name. (see notes about how project folder names are stored and retrieved)
Returns the extension of a folder file based on the passed folder name . See the "Special Notes About Project Folder Names" section.
Returns the name of a folder file based on the passed folder name.
Returns the project folder name of the folder represented by the position index nFolder. Project folders are numbered consecutively.
This method returns the deployment status of the passed folder name. This method can be used to skip folders that have been designated as "Do Not Deploy" folders.
Opens the project specified in the passed OleString. The project specification must be a fully qualified path to the existing project file.
This method can be used to change the name of a generated deployment log file. The default name is "Deployment.log" and it's default location is the Homesite (Studio) main installation directory. Specify a fully qualified path and filename.
This method can be used to turn logging on and off. This method only has an effect prior to opening a project for deployment.
Uploads an individual file to the server. The first OleString represents the fully qualified path of an individual file to upload. The second OleString represents the fully qualified target name, such as rds://localhost/main/index.html.
Uploads an entire project based on the fully qualified project name passed as an OLE string. This triggers the default deployment engine processing loop which iterates through each server assigned to the project, each folder within the project, and uploads all the files contained within each folder. Note that any folders that have been configured as "Do not deploy" folders will be skipped during this process.
Project folder names are stored in the following format: Project/Folder/Subfolder1[/SubFolder2... SubFolderN], where:
To use any of the existing Folder-related DeploymentManager VTOM calls, you must pass the fully qualified folder name starting from the project name itself. For example, if you have a project called Project1, and you have a Main folder which contains and Images folder and you wanted to retrieve the count of how many files you had in the images folder, the proper call would be:
ICount = GetFolderFileCount("MyProject/Main/Images"); // Returns count of files in Images