summaryrefslogtreecommitdiff
path: root/buildstream/plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/plugin.py')
-rw-r--r--buildstream/plugin.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/buildstream/plugin.py b/buildstream/plugin.py
index 56bee90c1..5a7d70961 100644
--- a/buildstream/plugin.py
+++ b/buildstream/plugin.py
@@ -176,14 +176,6 @@ class Plugin():
"""
return self.__kind
- def get_context(self):
- """Fetches the context
-
- Returns:
- (object): The :class:`.Context`
- """
- return self.__context
-
def node_items(self, node):
"""Iterate over a dictionary loaded from YAML
@@ -562,6 +554,13 @@ class Plugin():
# Private Methods used in BuildStream #
#############################################################
+ # _get_context()
+ #
+ # Fetches the invocation context
+ #
+ def _get_context(self):
+ return self.__context
+
# _get_project()
#
# Fetches the project object associated with this plugin