Foundry.VcsProvider¶
- Subclasses:
None
Methods¶
- Inherited:
Foundry.Contextual (4), GObject.Object (37), Json.Serializable (8), Gio.ListModel (4)
- Structs:
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
GObject.Object (7), Json.Serializable (5), Gio.ListModel (3)
|
|
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Foundry.VcsProvider(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
Abstract base class for plugins to implement a version control system such as Git, Mercurial, Subversion, or CVS.
- dup_name()¶
- Returns:
the name of the provider
- Return type:
Gets a name for the provider that is expected to be displayed to users such as “Flatpak”.
- dup_plugin_info()¶
- Returns:
a [class`Peas`.PluginInfo] or
None- Return type:
Gets the plugin the provider belongs to.
New in version 1.1.
- initialize()¶
- Returns:
a [class`Dex`.Future] that resolves to any value or rejects with error.
- Return type:
Initialize a repository for the current project.
The provider should also update the VcsManager to the new Vcs that is created/initialized as part of this.
New in version 1.1.
- set_vcs(vcs)¶
- Parameters:
vcs (
Foundry.Vcs) –
- supports_uri(uri_string)¶
-
Checks if a URI is supported by the VCS provider.
This is useful to determine if you can get a downloader for a URI to clone the repository.
- do_dup_name() virtual¶
- Returns:
the name of the provider
- Return type:
Gets a name for the provider that is expected to be displayed to users such as “Flatpak”.
- do_initialize() virtual¶
- Returns:
a [class`Dex`.Future] that resolves to any value or rejects with error.
- Return type:
Initialize a repository for the current project.
The provider should also update the VcsManager to the new Vcs that is created/initialized as part of this.
New in version 1.1.
Property Details¶
- Foundry.VcsProvider.props.plugin_info¶
- Name:
plugin-info- Type:
- Default Value:
- Flags: