コード例 #1
0
ファイル: __init__.py プロジェクト: scenek/sgmanager
    def load_remote_groups(self):
        """
        Load security groups and their rules from EC2
        Save and return SecurityGroups object

        :rtype : object
        """
        self.remote = SecurityGroups(vpc=self.vpc, only_groups=self.only_groups)
        self.remote.load_remote_groups()
        return self.remote
コード例 #2
0
ファイル: __init__.py プロジェクト: scenek/sgmanager
    def load_local_groups(self, config, mode):
        """
        Load local groups from config file
        Save and return SecurityGroups object

        :param config: configuration file path
        :rtype : object
        """
        self.local = SecurityGroups(vpc=self.vpc, only_groups=self.only_groups)
        self.local.load_local_groups(config, mode)
        return self.local
コード例 #3
0
    def load_local_groups(self, config):
        """
        Load local groups from config file
        Save and return SecurityGroups object

        :param config: configuration file path
        :rtype : object
        """
        self.local = SecurityGroups()
        self.local.load_local_groups(config)
        return self.local