Lines Matching refs:self
49 def __init__(self, argument
55 self.package = package
56 self.url = url
57 self.ab_install_type = ab_install_type
58 self.ab_force_switch_slot = ab_force_switch_slot
59 self.ab_verify_payload_metadata = ab_verify_payload_metadata
60 self.streaming_required = (
65 self.streaming_optional = (
71 self._config = None
74 def config(self): argument
76 return self._config
78 def run(self): argument
80 self._config = {
82 'name': self.ab_install_type[0] + ' ' + os.path.basename(self.package)[:-4],
83 'url': self.url,
84 'ab_config': self._gen_ab_config(),
85 'ab_install_type': self.ab_install_type,
88 def _gen_ab_config(self): argument
90 with zipfile.ZipFile(self.package, 'r') as package_zip:
92 'property_files': self._get_property_files(package_zip),
93 'verify_payload_metadata': self.ab_verify_payload_metadata,
94 'force_switch_slot': self.ab_force_switch_slot,
117 def write(self, out): argument
120 json.dump(self.config, out_file, indent=4, separators=(',', ': '), sort_keys=True)