MCPcopy
hub / github.com/saltstack/salt / __enter__

Method __enter__

tests/support/pkg.py:1649–1662  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1647 self._check_retcode(ret)
1648
1649 def __enter__(self):
1650 self.update_process_path()
1651 if platform.is_darwin():
1652 self._refresh_macos_binary_paths()
1653
1654 if self.no_install:
1655 return self
1656
1657 if self.upgrade:
1658 self.install_previous()
1659 else:
1660 # assume downgrade, since no_install only used in these two cases
1661 self.install()
1662 return self
1663
1664 def __exit__(self, *_):
1665 if not self.no_uninstall:

Callers

nothing calls this directly

Calls 4

update_process_pathMethod · 0.95
install_previousMethod · 0.95
installMethod · 0.95

Tested by

no test coverage detected