Otter Documentation

proget - Ensure Package

  • Last Modified: 2018-11-09

This is generated from the built-in components of Otter 2.1, and may be different than what you have installed (especially if you have extensions); go to [User Icon] > Documentation within your Otter instance to see exactly what operations are available.

Ensure Package

Ensures that the contents of a ProGet package are in the specified directory.

Operation type:

Ensuring - this operation will ensure a specified configuration exists on a remote server after comparing its current state to the desired state.

Script usage:

ProGet::Ensure-Package(
	Directory: <text>,
	[Credentials: <text>],
	Feed: <text>,
	Name: <text>,
	[Version: <text>],
	[DeleteExtra: <true/false>],
	[Include: <@(text)>],
	[Exclude: <@(text)>],
	[FeedUrl: <text>],
	[UserName: <text>],
	[Password: <text>]
);

Arguments:

Name Format Script Usage Usage Notes
🔑 Target directory
text
Directory
The directory path on disk of the package contents. This argument is the unique key for this operation, which means it must uniquely identify the target of the operation. This argument is required.
Credentials
text
Credentials
Feed name
text
Feed
This argument is required.
Package name
text
Name
This argument is required.
Package version
text
Version
Delete files not in Package
true/false
DeleteExtra
Include
@(text)
Include
See KB#1119 to learn more about masking syntax.
Exclude
@(text)
Exclude
See KB#1119 to learn more about masking syntax.
ProGet server URL
text
FeedUrl
ProGet user name
text
UserName
The name of a user in ProGet that can access this feed.
ProGet password
text
Password
The password of a user in ProGet that can access this feed.

Have a question? Try the Q&A Forum

Our documentation is now Open Source and on GitHub. We highly encourage our users to contribute and get involved! .