def parse_commandline_arguments(self, arguments): assertions.assert_on_branch("develop") assertions.assert_no_uncommitted_changes() methods = [self.release, self.upload] [method] = [method for method in methods if arguments.get(method.__name__)] self.arguments = arguments method()
def parse_commandline_arguments(self, arguments): assertions.assert_on_branch("develop") assertions.assert_no_uncommitted_changes() methods = [self.release, self.upload] [method ] = [method for method in methods if arguments.get(method.__name__)] self.arguments = arguments method()
def pre_command_assertions(self): assertions.assert_setup_py_exists() assertions.assert_on_branch("develop") assertions.assert_no_uncommitted_changes()
def pre_command_assertions(self): assertions.assert_setup_py_exists() assertions.assert_on_branch("develop") assertions.assert_no_uncommitted_changes()