Commit 3699693c authored by knownexus's avatar knownexus
Browse files

Move Cas call to Platform

parent 3bb13520
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ import sys
import resource

from .._exceptions import PlatformError, ImplError
from .._artifactcache.cascache import CASCache


class Platform():
@@ -39,6 +40,7 @@ class Platform():
    def __init__(self, context):
        self.context = context
        self.set_resources()
        self._artifact_cache = CASCache(context)

    @classmethod
    def create_instance(cls, *args, **kwargs):
+0 −1
Original line number Diff line number Diff line
@@ -31,7 +31,6 @@ class Unix(Platform):
    def __init__(self, context):

        super().__init__(context)
        self._artifact_cache = CASCache(context)

        # Not necessarily 100% reliable, but we want to fail early.
        if os.geteuid() != 0: