Package com.mooltiverse.oss.nyx.gradle
Class NyxExtension.GitConfiguration.GitRemoteConfiguration
java.lang.Object
com.mooltiverse.oss.nyx.gradle.NyxExtension.GitConfiguration.GitRemoteConfiguration
- Enclosing class:
NyxExtension.GitConfiguration
The class to model a single 'remotes' item within the extension.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the remote authentication method.getName()Returns the name read-only mandatory property.protected abstract ObjectFactoryReturns an object factory instance.Returns the remote passphrase for the private key.Returns the remote password.Returns the remote private key.getUser()Returns the remote user.
-
Constructor Details
-
GitRemoteConfiguration
Constructor. This constructor is required as per theNamedDomainObjectContainerspecification.- Parameters:
name- the remote name
-
-
Method Details
-
getObjectfactory
Returns an object factory instance. The instance is injected by Gradle as soon as this getter method is invoked. Using property injection instead of constructor injection has a few advantages: it allows Gradle to refer injecting the object until it's required and is safer for backward compatibility (older versions can be supported).- Returns:
- the object factory instance
-
getName
Returns the name read-only mandatory property.- Returns:
- the name read-only mandatory property.
-
getAuthenticationMethod
Returns the remote authentication method. When this is set by the user it overrides the inference performed by Nyx. We provide an implementation of this method instead of using the abstract definition as it's safer for old Gradle versions we support.- Returns:
- the remote authentication method
-
getPassword
Returns the remote password. When this is set by the user it overrides the inference performed by Nyx. We provide an implementation of this method instead of using the abstract definition as it's safer for old Gradle versions we support.- Returns:
- the remote password
-
getUser
Returns the remote user. When this is set by the user it overrides the inference performed by Nyx. We provide an implementation of this method instead of using the abstract definition as it's safer for old Gradle versions we support.- Returns:
- the remote user
-
getPrivateKey
Returns the remote private key. When this is set by the user it overrides the inference performed by Nyx. We provide an implementation of this method instead of using the abstract definition as it's safer for old Gradle versions we support.- Returns:
- the remote private key
-
getPassphrase
Returns the remote passphrase for the private key. When this is set by the user it overrides the inference performed by Nyx. We provide an implementation of this method instead of using the abstract definition as it's safer for old Gradle versions we support.- Returns:
- the remote passphrase for the private key
-